I am needing some assistance with a problem I am having when writing to a text file. The data is writing to the file okay, but where I expect to see LF (ascii value hex 0A) as the separator what I get is a CR (ascii value hex 0D). I have tried other separator combinations, for example CRLF and what I get there is ascii value hex 0D, followed by another 0D.
I am new to Livecode so don't know if I am missing something simple here.
Here is the code I have used.
Code: Select all
global arrayData
global RecordCount
global DataFileName
on mouseUp
local myText
open file DataFileName for write
repeat with iCount = 1 to RecordCount
repeat with iLoop = 1 to 11
put arrayData[iCount,iLoop] & LF into myText
write myText to file DataFileName
end repeat
end repeat
close file DataFileName
end mouseUp