Managing rows in small text file

CidTek

Active Member
Licensed User
Longtime User
I need to save some info in a text file with anywhere from 1 to probably 10 maximum lines of text.

The user needs to be able to erase some some of these rows to reduce his number of favorites saved.

Does the Map file format allow for removing items in the same manner as the Windows ini file api does, or do I have to create a new file by manually building the only valid rows and then replacing the original file?
 

CidTek

Active Member
Licensed User
Longtime User
You can use a Map for this, however it will be best to use a List in this case.
You can then read the complete file with File.ReadList, remove some items from the list and write the new file with File.WriteList.

Thanks, list management methods sound like a good idea.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…