SC Readfile/Writefile Line parameter.
Posted: 24 Jan 2020 01:26
currently there are 2 ways to handle files containing text: either operate them as ini structured or as raw text with full/bit-by-bit load. it could be great if Readfile/Writefile allow to specify a line in text that is target.
if i understand it correct, that's smt like counting how many line-brakers to skip = so if the target is text in line 16, then 15 line-brakers are skipped and all text between 15-16 brakers is target for operation.
there are already numerous scripts that had to deal with this task in different ways(regex, sorting, search, etc), and those would benefit from such enhance for sure.
examples:
- operating with numerous files of similar structure to fast get particular information;
- creating "settings" for scripts without actually need to use .ini structure;
- lots of manipulations with simple text files, paper folder structure, modifying other script files.
if i understand it correct, that's smt like counting how many line-brakers to skip = so if the target is text in line 16, then 15 line-brakers are skipped and all text between 15-16 brakers is target for operation.
there are already numerous scripts that had to deal with this task in different ways(regex, sorting, search, etc), and those would benefit from such enhance for sure.
examples:
- operating with numerous files of similar structure to fast get particular information;
- creating "settings" for scripts without actually need to use .ini structure;
- lots of manipulations with simple text files, paper folder structure, modifying other script files.