WriteLn outputting CRLF

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
bmcc
Newbie
Posts: 1
Joined: Mon Feb 28, 2011 8:00 pm

WriteLn outputting CRLF

Post by bmcc » Tue Mar 01, 2011 11:09 pm

I set the system variable that controls the writing out of CRLF but WriteLn still spits it out. Can anyone give me any insight on this?

I am using an HTTPRequest and a IE object to extract data from a website and write it out to a file. There was a point when the CRLF was not being printed but then I started calling the VBScript functions and now I always see them when I view the file in Notepad.

Any help would be great thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Mar 02, 2011 9:03 am

It would help to see your code. The following prevents WriteLn from outputting CRLFs (so each write would appear on the same line with no new line characters between them):

Let>WLN_NOCRLF=1
WriteLn>outfile,res,text

If you are still seeing new lines in the output file then you must have CR and/or LF characters in the data you are writing out.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts