Comment on Tutorial - Reading and Writing a file to SD card sample program in Android By Ashley



Comment Added by : Göktuğ ÖZEL

Comment Added at : 2013-03-13 22:44:55

Comment on Tutorial : Reading and Writing a file to SD card sample program in Android By Ashley
Hi i changed some codes in that and i gave internet permission to manifest. But I have a problem. when I click the write button I cannot change my xml file on my host with this sample. could u help me please. Error is: open failed: EROFS(Read-only file system)

I changes so:
try {
URL url = new URL("http://22net.edirnesaglik.gov.tr/deneme/data.xml");

File myFile = new File("url.openStream()");
myFile.createNewFile();
FileOutputStream fOut = new FileOutputStream(myFile);


Thank You =)


View Tutorial



Subscribe to Tutorials

Related Tutorials

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Java program to check if user input is an even number

Archived Comments

1. This solution worked like a charm, thank you. I ha
View Tutorial          By: budfox at 2014-07-15 14:25:16

2. im beginning to design a program that will deactiv
View Tutorial          By: andrew at 2012-01-29 14:32:39

3. Sencillo y directo. No se podía explic
View Tutorial          By: Eligio at 2013-09-03 05:26:35

4. can you plase give an exmple of what should i put
View Tutorial          By: Or at 2013-02-16 11:32:17

5. Hy gr8 man..!!! It was easy understanding
View Tutorial          By: ahwe at 2010-04-07 02:50:40

6. hello!
I am so confused and a total beginne

View Tutorial          By: Jena at 2011-06-11 17:39:39

7. hi
very tnx for your code

View Tutorial          By: Moji at 2012-08-19 16:06:53

8. this total example is copy paste from the Herbert
View Tutorial          By: Parna at 2012-06-03 05:16:37

9. very simple to understand
View Tutorial          By: chermaraja at 2010-05-26 00:00:05

10. how do i get the java tutorial material...
View Tutorial          By: Muruga at 2012-10-29 21:10:17