Results 1 to 2 of 2
- 02-11-2011, 06:01 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 9
- Rep Power
- 0
- 02-11-2011, 06:09 PM #2
Senior Member
- Join Date
- Feb 2011
- Posts
- 118
- Rep Power
- 0
It's easy enough to avoid renaming it (just open it, read it, close it, change it, open it again, write it, and close it again), but what's wrong with copying its entire contents? It's easier to do that with a BufferedReader & BufferedWriter than using something like a RandomAccessFile, which is a pain in the ass, and is better suited to binary files than to plain text ones.
Similar Threads
-
Write to a specific line in a file
By phantom06 in forum New To JavaReplies: 1Last Post: 02-05-2011, 06:32 PM -
write line multiple times
By relith in forum New To JavaReplies: 3Last Post: 10-27-2010, 08:38 AM -
Read and Write depending on file contents
By paulhenderson in forum Java AppletsReplies: 3Last Post: 02-15-2010, 12:38 PM -
Draw more than one line on run time
By aiman in forum Java AppletsReplies: 3Last Post: 12-10-2009, 02:44 AM -
Write to line in file
By blackstormattack in forum New To JavaReplies: 3Last Post: 03-09-2009, 12:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks