Jeff,
You cannot do that directly in a file on disk, however when you have readed
that than it is.
You cannot do that in a textfile when it are not real lines (I start with
this because that shows it better step by step ). In memory the most simple
way I know is.
\\\
mytext.text = mytext.text.replace("myline to delete","")
///
When it is are lines you can do it in the same way by adding the used
linefeed as example
\\\
mytext.text = mytext.text.replace("myline to delete" & VBCRLF ,"")
///
I never did it the way above in a program however got the idea writting this
When it is not readed, you can just read and write the lines, check the
contents of a line and not write that one(s) back.
You have to delete the input and rename the output file at the end.
I though there are for that some samples in that streamreader streamwritter
collection of samples in this page.
http://msdn.microsoft.com/library/de...classtopic.asp
I hope this helps?
Cor