Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Dec 20, 2006 12:28 PM by 807607
delete a line in textfile?
Dec 20, 2006 9:24 AM
how can I delete a specified line in a textfile.
The text file created by file.write() method in a folder(ex. D:/xy.txt).
My program problem is, hen I click on item in JList, the selected item deleted from the text file where I previously stored the values.
hello, It a funny thing. ---> line 1
dsfdsfsdfdfgggg ---> line 2
I want to delete line 1 from the text file.
how can i do it.
This content has been marked as final.
Show 1 reply
Re: delete a line in textfile?
Dec 20, 2006 12:28 PM
in response to
i have a long way.
You have to read all the file skipping the
, close it and open the file in write mode and override the previous one.