I arbitrarily put "15" as the length of bytes, as I don't quite understand how I know how many bytes the file actually is. I don't really understand why you would not want to save the full length of bytes either. Can you provide example code, perhaps one that will just use the full byte size for length and actual?
As for RequestLoadFile, even when I remove "downloadedFile.Write(15);" it still seems to do nothing.
When I call RequestSaveFile, on the server in the folder that houses the .exe/server, "test.txt" is created.
I would expect when I call RequestLoadFile, on the client's computer, in the folder that houses the game's .exe, "test.txt" would be downloaded to. With my current code, no file appears. If that is not correct, how do I do that? All I want is to download a file from the default folder on the server to the default folder on the connected client.
Thank you, I am still very new at network code.