11-05-2023, 01:55 PM
(11-05-2023, 12:21 AM)PhilOfPerth Wrote: Thanks again to all. You got me back out of my cave!
@bplus: I've gone through your Line Editor, line by line, and commented an explanation of what you did, and finally got it!
It has functions in it that I probably won't need (Saving and Backup), but it does what I wanted - I can search for and read
any line of my file, randomly.
Thanks again.
If you just want a reader then yes, no need to save or backup. But if you want to add and edit lines you want to save your work and back up your data from old file first just in case something happens to new data file.
But again talking simplest ways to go about all this is just use a Word Processor, maybe number the lines yourself but mine has line numbers like QB64 IDE. That way you can view more than one line at a time.
You could also load a text file into an array to sort the file by lines, say if all the lines start with a date. With my little line editor that would not work because lines start with numbers but using a WP and starting all lines with a Date: Year-MM-DD format you can order all your entries like I do with my accounting accounts transactions.
b = b + ...