Hi,
Normally if I have a text file with line lengths less than 255, I can APPEND the text file into a table, manipulate the lines in the table, then output the changes to another text file.
But the text files I'm working with, have line lengths of around 1000 characters. The line length is uniform throughout the text file.
Is there a way to manipulate the text file, like e.g. REPLACing the minuses in the BBB line types with pluses, and replacing the pluses with minuses (essentially reversing all the amounts in the text file)?
I'm trying to do it from the REPL/DOT PROMPT, rather than writing a script.
If it's necessary, I'll write the script, and probably populate an array with the text file, then loop through it and do the replace. I just wanted to see if it's possible to do this manipulation manually.
AAA FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE
BBB -0000123.00ABCD
BBB +0000777.00ABCD
BBB +0000845.00ABCD
CCC HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
DDD 39292983987AABBBBCCCCC
Normally if I have a text file with line lengths less than 255, I can APPEND the text file into a table, manipulate the lines in the table, then output the changes to another text file.
But the text files I'm working with, have line lengths of around 1000 characters. The line length is uniform throughout the text file.
Is there a way to manipulate the text file, like e.g. REPLACing the minuses in the BBB line types with pluses, and replacing the pluses with minuses (essentially reversing all the amounts in the text file)?
I'm trying to do it from the REPL/DOT PROMPT, rather than writing a script.
If it's necessary, I'll write the script, and probably populate an array with the text file, then loop through it and do the replace. I just wanted to see if it's possible to do this manipulation manually.
AAA FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE FIRSTLINE
BBB -0000123.00ABCD
BBB +0000777.00ABCD
BBB +0000845.00ABCD
CCC HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
DDD 39292983987AABBBBCCCCC