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. my code is unable to open included files
ho

View Tutorial          By: MANAS at 2013-09-08 05:44:46

2. Excellent for beginners
View Tutorial          By: PRN at 2012-05-22 09:49:15

3. If i delete a record, will that recId be replaced
View Tutorial          By: faisal at 2009-06-08 21:36:29

4. javax.comm.NoSuchPortException
at javax.co

View Tutorial          By: agnas at 2008-04-29 16:26:41

5. Very clear and instructive. Better than other expl
View Tutorial          By: cembircan at 2015-06-10 15:45:01

6. the code works fine,i also tried the write code.th
View Tutorial          By: Joy at 2013-11-25 05:24:23

7. Post your errors, so that others may help you my f
View Tutorial          By: yogesh at 2010-01-12 00:45:42

8. hai vij i am also having error what sol u used to
View Tutorial          By: uma at 2008-05-30 01:05:39

9. my query is like this: " accept a string, cou
View Tutorial          By: samtopper at 2014-07-31 17:40:25

10. write the program to convert the following:

View Tutorial          By: belgreen frodo at 2015-03-31 05:53:21