loop read file - tab characters at beginning of line are stripped
Posted: 18 Jul 2017, 10:25
[searched here for 'loop read file tab beginning' which did not bring up any results]
When using loop, read to read a file, the tab characters at the beginning of each line are stripped. I dont see any options to preserve them. Do not want to use FileRead and then parse the string - I do not even know if it will have this same issue. Any ideas?
Here is piece of code that I am using;
Thanks in advance for your time.
When using loop, read to read a file, the tab characters at the beginning of each line are stripped. I dont see any options to preserve them. Do not want to use FileRead and then parse the string - I do not even know if it will have this same issue. Any ideas?
Here is piece of code that I am using;
Code: Select all
Loop, read, %FromFolder%%InputFile%
{ ;; ------------------------ LOOP 58748 BEGINS
currline =
currline = %A_LoopReadLine%
;msgbox %currline%
;; work on the line. If certain text strings are found in a line, modify them as needed
;; write any lines (changed or unchanged) to a variable, separated by newline char
;; write the variable to a new file
}