So I have made test classes(a client & a server). The server class send a file to the client class.
These classes work fine as long as I only transfer one file. If I have more I get weird problems. The problem: The first file sent will be the only file which is not empty. All the files will be written to the first file.
Example, sat file1.txt contains: hello world,
and file2.txt contains zup planet,
the client will get file1.txt which look like this: hello work zup planet and file2.txt will be empty.
check the code under