Overwriting File Info
Author |
Message |
Selfi
|
Posted: Mon Jan 24, 2005 12:55 am Post subject: Overwriting File Info |
|
|
Hi everyone, I'm trying to figure out how to remove lines of information from files.
For example, the file contents is
a
b
c
d
e
f
g
and i want to remove the line containing the letter d
how would one go about this without creating a blank line in the file?
thanks a bunch in advance. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Mon Jan 24, 2005 4:47 pm Post subject: (No subject) |
|
|
Can you read the lines from the file into an array of Strings?
Can you loop over that array?
Can you print each String in that array to a file? |
|
|
|
|
|
|
|