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. Hello,
I have downloaded this code

View Tutorial          By: Parthasarathi at 2009-09-21 02:09:49

2. Simple and easy code..........
View Tutorial          By: mandalson at 2011-12-24 06:50:38

3. Can you explain with increment and decrement opera
View Tutorial          By: Sathish Kumar at 2013-09-01 07:40:42

4. Hi,
I am Mahesh. i want to sending sms cod

View Tutorial          By: Mahesh at 2011-05-20 05:24:22

5. please help me how to run this program..
View Tutorial          By: khairie at 2009-12-01 22:43:08

6. Good
View Tutorial          By: sandesh at 2009-10-01 01:15:29

7. thank you very much...
Explained in a simpl

View Tutorial          By: vineela at 2013-02-18 10:29:08

8. sir ji,
i want do learn for loop in java an

View Tutorial          By: Prabhakar at 2009-11-06 00:48:53

9. I have one textbox and three label.i want to parse
View Tutorial          By: Nara at 2011-08-01 06:16:07

10. Thanks for this section. Clears most of my doubts.
View Tutorial          By: Melvin at 2008-07-05 04:54:19