Hi ,
I've some problem reading a file. First of all I've created a new
file ,and from the FileExplorer of Eclipse I'm able to find it but I
can't open it and read it(it seems also that the file "Datacoord.dat"
is empty, as a matter of fact the size showed by the FileExplorer is
0).
However I want to read a file, what is the right sintax? Can I create
file out of the data/data/mypackage/files ??
I post my code:
PrintWriter savedpoint = new PrintWriter(openFileOutput
("Datacoord.dat",MODE_APPEND));
for(int i=0;i<20;i++)
{
savedpoint.println("-78.443221"+i+" "+"120.344423");
}
Is this rigth to write on a file?
Please write the sintax to read a file..Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---