Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Save chat history
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
_justin_




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
tupac




PostPosted: Thu Mar 02, 2006 8:39 pm   Post subject: (No 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
batman




PostPosted: 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]
TokenHerbz




PostPosted: Thu Mar 02, 2006 8:51 pm   Post subject: (No 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.
_justin_




PostPosted: Thu Mar 02, 2006 8:53 pm   Post subject: (No subject)

alright thanks guys Mr. Green Mr. Green
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: