Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Thu May 01, 2008 8:46 am   

Read/Write to Log File
 
How can I create a file such as file 1, add some header text, then set that as my log for the session to append all the logging text to it?

I've already set everything up to where I create the file, write the text, then set #Log to log to that file. However, when I open it nothing was logged to it, even though it shows that is the right path it was supposedly logging to. All my header text is there, but it didn't log anything to it. I don't understand it.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4774
Location: Pensacola, FL, USA

PostPosted: Thu May 01, 2008 8:59 am   
 
you may need to close the file again before starting to log

#FILE 1 $whatever
#WRITE 1 {header}
#CLOSE 1
#LOG $whatever
_________________
Discord: Shalimarwildcat
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Thu May 01, 2008 9:05 am   
 
Hmm I bet that is it. I will check and see.

Edit: Yep that was it. Embarassed
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net