shortcut to delete last append line

  • Thread starter Thread starter Cc
  • Start date Start date
You dont' say where you want this; is it in the Text Editor in the Visual
Studio IDE or in a file you're writing to, or...?
 
thks for reply,
what i mean is in the program. i using StreamWriter to append line to
textfile. now i need to delete last append line.

rgds,
charles,
 
Cc said:
thks for reply,
what i mean is in the program. i using StreamWriter to append line to
textfile. now i need to delete last append line.

You'll need to read the file, write it to another file except the last
line and then copy it over to the original. When it's a small file you
could read it into memory and just rewrite the existing file save the
last line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top