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



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. Being a freshman in blogging, I really appreciate
View Tutorial          By: tyu at 2009-09-03 08:12:32

2. i am getting the erorr such as:::::
Error l

View Tutorial          By: supriyo at 2011-02-21 13:17:00

3. one have to store .wav file in res folder of your
View Tutorial          By: swetha at 2013-06-14 06:47:57

4. can i ask a program that will compute a order from
View Tutorial          By: mjae at 2011-09-12 08:02:46

5. good its very useful to beginers
View Tutorial          By: venki at 2012-11-07 10:03:26

6. Thanks dude its really helpful. it clears my doubt
View Tutorial          By: Sriram at 2009-12-28 05:54:37

7. Hi, Can anyone please tell me where we need to cha
View Tutorial          By: Gunjan at 2014-01-02 12:08:41

8. Dear sir,
Can you provide me for a simple p

View Tutorial          By: kartikeya at 2012-12-22 10:19:41

9. i can saved when i run the program...
but w

View Tutorial          By: kathleen ashley at 2010-08-02 05:22:46

10. I am to learn J2ME
View Tutorial          By: ravi kumar at 2011-06-20 05:50:20