achiman 0 Junior Poster in Training

Hey I have just developed a client server chat system but I am having problem trying to save the conversation. Can anyone tell me how I can do this, I am not sure if I have to convert the inputstream to file or the datastream to file or neither. thanks