Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: carriage return line feed
I have read the section on File read Parse and it mentioned about using ItemExtract or StrSub function to get line data. What I was trying to do is read a line of data from one file and then based on some conditions and write that data line to another 2 files.
It writes fine except that on one file it always has an extra blank line after each data line that I write. It seems to me that when the line is parsed, there is an end of line character at the end of each line and FileWrite will put the actual data on one line and then put the end of line charater on the second line for all the data lines in the file.
I tried to use the ItemExtract and StrSub function to just get the data out of the file and just write the data line but it didn't work. So I'm wondering if there is any other way to skip the new line character on the file that I want to write.
This information would be helpful.
line="stuff you want to write to the file") line=StrReplace(line,@LF,"") line=StrReplace(line,@CR,"") FileWrite(handle,line)
var=ItemSelect(xx,mydata,@tab) var=StrReplace(var,@LF,"") line=strcat(xxx,var,yyy) FileWrite(handle,line)
Article ID: W13079
Filename: FileWrite and CRLF Character.txt
File Created: 1999:04:15:16:51:36
Last Updated: 1999:04:15:16:51:36