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. very simple explanation
View Tutorial          By: shahbaz at 2010-03-19 10:34:32

2. i find out this example quite heplful thnx adimn..
View Tutorial          By: ayaz pathan ( MUET) at 2010-02-21 10:40:18

3. using a same name ,return type and parameter type
View Tutorial          By: sam at 2011-06-24 15:13:34

4. Hello,
could you send me the complete code

View Tutorial          By: Sanjay at 2013-04-19 07:28:12

5. its nice example for beginers
View Tutorial          By: Ramesh at 2012-02-15 18:13:09

6. Hi,
My problem is that how to connect the r

View Tutorial          By: Twahie at 2011-03-21 05:31:06

7. sir, i am completed MCA 2011 and i want to learn P
View Tutorial          By: vipin kumar at 2011-09-13 13:00:05

8. Excellent article. Please make the email id of the
View Tutorial          By: Rajita at 2008-03-25 09:31:27

9. This is the coding that I wanted...
This is

View Tutorial          By: Damith at 2012-05-16 17:26:10

10. Hi fiends,
your given approch is correct .

View Tutorial          By: Amit Kumar Singh at 2011-10-10 04:44:58