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. Thank you, saved my life
View Tutorial          By: Zs at 2013-04-13 22:51:54

2. Hi mate,
When I compile the DomParserExampl

View Tutorial          By: Suresh Kumar D at 2013-06-25 07:06:19

3. nice example..
View Tutorial          By: righana at 2011-07-19 08:46:50

4. Your answer was right on the money! After searchi
View Tutorial          By: ooh la la at 2013-07-19 20:33:41

5. please give example code with defined variable.
View Tutorial          By: shajjad at 2011-02-13 20:56:09

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

7. document.loginform.userName.focus();
return

View Tutorial          By: Parthiban at 2014-07-21 08:03:00

8. Best Explanation & gud example by finnaz......
View Tutorial          By: Umair Shuja at 2012-11-28 10:53:35

9. I have tried that but still getting the same error
View Tutorial          By: pra at 2008-04-14 21:55:44

10. My exchange email account is only partially delete
View Tutorial          By: ali at 2010-12-30 02:38:14