Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Dec 20, 2006 6:28 AM by
delete a line in textfile?
Dec 20, 2006 3: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 6:28 AM
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.