Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking to open a text file, search for a string, then write a line of text to the next line after finding that string. Basically, adding a note to a section of notes. See example below.
Example: Find "-Section 2-" and add a line of text under it:
-Section 1-
This is a note
This is another note
-Section 2-
*add new text here*
This is a note
This is another note
-Section 3-
This is a note
This is another note
I can open a file and read it, and also write to it, but haven't found or figured out a way to read, find, then write to it. Yet. Any help is always appreciated.
AutoCad 2018 (full)
Win 11 Pro
Win 11 Pro
Solved! Go to Solution.