wood burning stoves 2.0*
The moose likes Android and the fly likes Android createNewFile() .txt file and readFile() methods not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android createNewFile() .txt file and readFile() methods not working " Watch "Android createNewFile() .txt file and readFile() methods not working " New topic
Author

Android createNewFile() .txt file and readFile() methods not working

Tom Mordon
Ranch Hand

Joined: Apr 26, 2012
Posts: 30
I've been trying to get my readFile() & createFile() methods to work and no luck so far. I'm using eclipse in Windows 7. My file path is correct so I'm not sure what's wrong with the methods. Anyone see anything that doesn't look right? For the createFile() I have do different parts and I can't seem to get either one to work. The readFile() is pretty straight forward and just has to read in the file. I have to add the parse code to it still.


createFile()



readFile()
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Android createNewFile() .txt file and readFile() methods not working
 
Similar Threads
how to get progress bar after selecting a view
store a file in tomcat server
how to transfer images to ftp server in android
error while connecting to webservices
java.io.StreamCorruptedException: invalid stream header:i understand its a thread issue not sure fix