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

Program using concept of byte long short and int in java

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

Archived Comments

1. This is a great article that deals with the evolut
View Tutorial          By: JPS SASTRY at 2009-02-11 21:29:56

2. thanx to schildt
View Tutorial          By: singh at 2012-10-26 11:57:11

3. hi this is from Ashok....
can you send the

View Tutorial          By: Ashok at 2015-04-16 11:51:51

4. Very good description. I was quite confused before
View Tutorial          By: Donna at 2011-07-31 03:46:05

5. You should give more specification on exactly whe
View Tutorial          By: Abhijit at 2013-03-09 20:14:21

6. Your code is syntactically correct, but semantical
View Tutorial          By: mobinga at 2011-07-25 15:08:27

7. It's simply nice.
View Tutorial          By: ghani at 2011-07-01 07:18:35

8. Hi Rajita, in accordance to our 'Privacy Policy' w
View Tutorial          By: webmaster at 2008-03-25 18:49:39

9. informative article.......
View Tutorial          By: Nithin at 2012-08-17 15:32:37

10. nice examples,but i have one problem in my project
View Tutorial          By: swati at 2015-04-30 10:48:13