Hello,
There seems to be a problem with the following methods:
FileInfo theSourceFile = null;
or
System.IO.FileStream fileStream = new System.IO.FileStream("chathistoryb.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.ReadWrite, System.IO.FileShare.None);
System.IO.StreamReader sr = new System.IO.StreamReader("chathistoryb.txt");
System.IO.StreamWriter sw = new System.IO.StreamWriter("chathistoryb.txt");
When I try to use it I get this outputted on the server:
error: MushroomsUnity3DExample.GameCode.GotMessage(...) has varible of the non-allowed type: System.IO.FileInfo
I'm trying to save chat messages to a text file on the servers side and then load the messages back to everyone once they log back in.
Is there special way to read/write to text files with player io?
Thanks