
-----------------------------------
_justin_
Thu Mar 02, 2006 8:26 pm

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.

-----------------------------------
tupac
Thu Mar 02, 2006 8:39 pm


-----------------------------------
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:

-----------------------------------
batman
Thu Mar 02, 2006 8:45 pm

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.  :D
 [/quote]

-----------------------------------
TokenHerbz
Thu Mar 02, 2006 8:51 pm


-----------------------------------
Have a file : Logs.txt  along with the chat program,

make a variable :  var User_File: int 

Now creat a proc somwhats like this...


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.

-----------------------------------
_justin_
Thu Mar 02, 2006 8:53 pm


-----------------------------------
alright thanks guys  :mrgreen:  :mrgreen:
