SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Writing to EOF not working

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Writing to EOF not working
Author Message
Lee Hudspeth



Joined: 07 Sep 2000
Posts: 8

Post Writing to EOF not working Reply with quote

I've been trying to write/append text to a file with existing data in it. When I run the following JAL code, it overwrites the entire file instead of appending at the EOF. Is this a bug or am I doing something wrong?
I'm running NT4sp5, with 24x7v2.3.5
Thanks for any help you can provide!

Dim logfilenum, number
Fileopen("c:\\test\\testlog.log", "linemode","write","true",logfilenum)
FileWrite( logfilenum, "This is a test" )
Fileclose(logfilenum)


Tue Sep 26, 2000 1:56 pm View user's profile Send private message
Lee Hudspeth



Joined: 07 Sep 2000
Posts: 8

Post Re: Writing to EOF not working Reply with quote

Never mind. I figured out that quotes are not needed around TRUE in the fileopen command. Thanks anyway!

: I've been trying to write/append text to a file with existing data in it.
: When I run the following JAL code, it overwrites the entire file instead
: of appending at the EOF. Is this a bug or am I doing something wrong?
: I'm running NT4sp5, with 24x7v2.3.5
: Thanks for any help you can provide!

: Dim logfilenum, number
: Fileopen("c:\\test\\testlog.log",
: "linemode","write","true",logfilenum)
: FileWrite( logfilenum, "This is a test" )
: Fileclose(logfilenum)

Tue Sep 26, 2000 2:05 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7842

Post Re: Writing to EOF not working Reply with quote

Change "true" to TRUE (no quotes)

: I've been trying to write/append text to a file with existing data in it.
: When I run the following JAL code, it overwrites the entire file instead
: of appending at the EOF. Is this a bug or am I doing something wrong?
: I'm running NT4sp5, with 24x7v2.3.5
: Thanks for any help you can provide!

: Dim logfilenum, number
: Fileopen("c:\\test\\testlog.log",
: "linemode","write","true",logfilenum)
: FileWrite( logfilenum, "This is a test" )
: Fileclose(logfilenum)

Tue Sep 26, 2000 3:11 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.