Nguyễn Hồng Yến
New member
How do I delete a single line in a text file?
Answer
The best way to do this is to open the file in text mode,
read each line with ReadLine(), and then write it to a new file with WriteLine() , skipping the one line you want to delete.
Answer
The best way to do this is to open the file in text mode,
read each line with ReadLine(), and then write it to a new file with WriteLine() , skipping the one line you want to delete.