Home arrow static arrow Java Programming [Archive] - Write to text file
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Write to text file
This topic has 2 replies on 1 page.

Posts:66
Registered: 5/26/04
Write to text file  
Jul 19, 2004 3:15 PM



 
Hi, I am new to java and would like to know how to create a test file, so here are my questions.

How do I create a new text file.
How do I open the file, and write line by line.
How do I close the file.

Any information regarding such would be helpful.

Thanks,
Rocky

 

Posts:10
Registered: 7/11/04
Re: Write to text file  
Jul 19, 2004 3:17 PM (reply 1 of 2)



 
http://www.google.com/search?hl=en&ie=UTF-8&safe=off&q=java+tutorial+file+IO+input+output&spell=1

use this, im in the same boat as u, i find this link very helpful
 

Posts:10
Registered: 7/11/04
Re: Write to text file  
Jul 19, 2004 3:18 PM (reply 2 of 2)



 
http://java.sun.com/docs/books/tutorial/essential/io/index.html

oops i meant this link
 
This topic has 2 replies on 1 page.