cRODEEkrank
Technical User
Hello,
I'm building a client/server application in which the client sends the contents of a text file containing student grades over to the server. The server is reading with a DataInputStream object using the readInt() method. The problem is, the integers its reading in are different from the grades from the file. Here's part of the code:
DataInputStream din = new DataInputStream
(sock.getInputStream());
while (din.readInt() != -1)
{
System.out.println(din.readInt());
}
Any help would be appreciated!
I'm building a client/server application in which the client sends the contents of a text file containing student grades over to the server. The server is reading with a DataInputStream object using the readInt() method. The problem is, the integers its reading in are different from the grades from the file. Here's part of the code:
DataInputStream din = new DataInputStream
(sock.getInputStream());
while (din.readInt() != -1)
{
System.out.println(din.readInt());
}
Any help would be appreciated!