I found a thread about writing files. http://www.anddev.org/working_with_files-t115-s30.html
Would it be helpfule for you? On Wed, Jul 29, 2009 at 2:59 AM, Lorenz <[email protected]> wrote: > > 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! > > > > -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

