Computer Science Canada

Save chat history

Author:  _justin_ [ Thu Mar 02, 2006 8:26 pm ]
Post subject:  Save chat history

k what i have setup is like a chat program so i have the client version and the server and what i want to know if their's a way where i can get the server to save everything that is goin on in the chat (like i want it to auto save every 5 mins or so) just so i can monitor what ppl are talking about and if ppl have been harasing others and so on

hmm not to sure if that makes sense but if you don't understand i can try to say that again


Justin.

Author:  tupac [ Thu Mar 02, 2006 8:39 pm ]
Post subject: 

i think wat u want is the "read", and "write" functions. go 2 turing help, and search those terms,u shud get somethin u need Wink

Author:  batman [ Thu Mar 02, 2006 8:45 pm ]
Post subject:  Saving

You could also use the record function to record any parts of the chat program you may want. The record function might work. If you don't know what it it then check the turing help files. Very Happy
[/quote]

Author:  TokenHerbz [ Thu Mar 02, 2006 8:51 pm ]
Post subject: 

Have a file :
code:
Logs.txt
along with the chat program,

make a variable :
code:
var User_File: int


Now creat a proc somwhats like this...

code:

proc Save_Chat
    open: User_File, "Logs.txt", put
    put: User_File, chat_string
    close: User_File
end SaveChat


call the proc evertime enter is pressed or somthing like that...
I dont know if your using a string variable or not in your chat program, but thats just 1 way to do it... To observe the logs, open the Logs.txt file.

Author:  _justin_ [ Thu Mar 02, 2006 8:53 pm ]
Post subject: 

alright thanks guys Mr. Green Mr. Green


: