| | |
how to delete lines of a file in java?
Thread Solved |
Read the file, writing it to a new file at the same time, and omit what should be deleted. Then rename the old file to a different name. rename the new file to the old name, then, if all of that is successful, delete the old file.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- How can I delete empty lines from file? (Java)
- Help to read .pst file from java (Java)
- Find the total lines in the file (Shell Scripting)
- Putting Auto Numbers in a File (C#)
- Can't delete a .jpg file. Help. (Windows NT / 2000 / XP)
- how to read CSV file in java (Java)
- How to make .exe file for my java prg (Java)
- Delete a .cpp file (C++)
Other Threads in the Java Forum
- Previous Thread: Java experts! Need help in this looping assignment
- Next Thread: Linked List
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list loop map method methods mobile netbeans newbie nextline object pong print problem producer program programming project projectideas read recursion recursive replaysolutions rim scanner sell server set size sms sort sql string swing terminal threads tree web websites windows






