This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Create .txt file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Create .txt file" Watch "Create .txt file" New topic
Author

Create .txt file

Nick George
Ranch Hand

Joined: Nov 17, 2003
Posts: 38
Right, so i can both read and write to text pre-existing text files, and i was wondering if it is possible to create new text files.
Thanks,
Nick
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Of course, if u create a new File object, then if ur specified file is not in the directory, then it is created as u specify in the parameter of the constructor...
It's very simple to create a new file in Java...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Manoj Zachariah
Ranch Hand

Joined: Dec 08, 2003
Posts: 65
this program readers a file and writes it into another file. i hope this answers you question!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Create .txt file
 
Similar Threads
Urgent Replt Please
text files creation
Difference between vi and touch
DBD::mysql installation error on trustix linux
Frequency of elements in Array