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. You should consider using different threads that a
View Tutorial          By: Jeremy at 2010-01-13 23:02:11

2. i am developing a video streaming pc server to j2m
View Tutorial          By: ziathegreat at 2009-05-19 13:19:15

3. great example for beginners. Thank you
View Tutorial          By: kumar at 2011-11-24 08:15:14

4. hi....!
This program is working well in co

View Tutorial          By: param at 2014-10-15 07:02:49

5. Thank you....
View Tutorial          By: Prakash at 2013-02-13 08:35:12

6. setListAdapter(new ArrayAdapter<String>(

View Tutorial          By: Mark at 2013-02-02 02:25:42

7. i nice programs tks
View Tutorial          By: jai at 2011-05-09 14:09:38

8. me too got the same problem....
but m sure

View Tutorial          By: HEHE at 2008-11-19 01:49:04

9. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

10. Whenever i run this program, it terminates immedia
View Tutorial          By: Gopi at 2015-08-19 06:55:41