I tried to pinpoint the problem by creating a text file with "^" for delimiters. Two fields are used: title^body^.
Here's a link to the text file named "sample6.txt":
http://drop.io/7rqgfsl
If you don't want to download the text file, this is basically what it is:
title^body^
test^zzzzzzzzzz...(z 65519 times)...zzzzzzzzzz This is where the problem starts^
And here's script:
Code:
Loop, read, sample6.txt
{
If A_LoopReadLine 1
FileAppend, `n, output.csv
; Loop, parse, current line being read, character that divides field, character to omit
Loop, parse, A_LoopReadLine, ^
{
If A_Index = 1
{
CurrentField = `"%A_LoopField%`",
FileAppend, %CurrentField%, output.csv
}
else
If A_Index = 2
{
continue
}
}
}
return
It should write the first field of each line to a file named "output.csv", but this is what I get instead:
Quote:
"title",
"test",
"ere the problem starts",
The end of the field on line two is added! Agh!

_________________
My startup is
Telesaur - a telecommuting job site.