SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Create Log file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Create Log file
Author Message
Jonathan



Joined: 08 Oct 2003
Posts: 13

Post Create Log file Reply with quote

I am trying to create a log file by using the concatex command and then using the filesave command. The problem is how do I put in line feeds?
I did see an example that had "\\r\\n" but that just puts a "\r\n in the middle of my text file.

Example of code:
Today( current_day )
concatex ("FAST rollout ", current_day, message)
concat (message, "Maplecrest", message)
FileSave("f:\\user\\jonbo\\24x7 test\\rollout.log", message)

This is what I am getting:
FAST Rollout 10/8/2003Maplecrest

This is what I would like:
FAST Rollout 10/8/2003
Maplecrest

Ideas?

Wed Oct 08, 2003 3:35 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Create Log file Reply with quote

Use "\r\n" instead of "\\r\\n"

"\" is an escape character. "\\" means the second "\" should be treated as is rather then as an escape for the following symbol.

: I am trying to create a log file by using the concatex command and then using
: the filesave command. The problem is how do I put in line feeds?
: I did see an example that had "\\r\\n" but that just puts a
: "\r\n in the middle of my text file.

: Example of code: Today( current_day )
: concatex ("FAST rollout ", current_day, message)
: concat (message, "Maplecrest", message)
: FileSave("f:\\user\\jonbo\\24x7 test\\rollout.log", message)

: This is what I am getting: FAST Rollout 10/8/2003Maplecrest

: This is what I would like: FAST Rollout 10/8/2003
: Maplecrest

: Ideas?

Wed Oct 08, 2003 3:59 pm View user's profile Send private message
Jonathan



Joined: 08 Oct 2003
Posts: 13

Post Re: Create Log file Reply with quote

THANKS!!!

: Use "\r\n" instead of "\\r\\n"

: "\" is an escape character. "\\" means the second
: "\" should be treated as is rather then as an escape for the
: following symbol.

Wed Oct 08, 2003 4:41 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.