hi,
Would anyone show how to delete a specific line from a txt file? Is there a member function from the ios class? thank you.
k2k
5
Posting Whiz
Recommended Answers
Jump to Post>Is there a member function from the ios class?
Sadly, no.>Would anyone show how to delete a specific line from a txt file?
Copy the file line by line and ignore the line you want to delete. Then delete the old file and rename the copy to the …
Jump to PostYou have to copy all the lines you want to keep to a new file.
Then delete the old file, and rename the new file.
All 8 Replies
Narue
5,707
Bad Cop
Team Colleague
Salem
5,138
Posting Sage
k2k
5
Posting Whiz
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
k2k
5
Posting Whiz
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
k2k
5
Posting Whiz
Salem
5,138
Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.