Client send a modified file to server,Server Cant read EOF(run infinite)
client modifying the "text file" and send to server.In the server side i try to read.i read all data but cant get end of File......so that it execute infinite.
i tried to used all I/O.
So that i created text file manually.Server read that file and terminate.
brief summary:
--
client::
--
1.The given file is ex: index.txt
2.Copy the all values from index.txt into arraylist
3.And then copy the arraylist values into Index.txt i.e overide the index.txt
4.And sending to server.
Server:
-
1.It read the details upto EOF
2.Server cant get EOF (run Infinite problem is running infinite..............)
But if i type the values manually in the index.txt file it can be received in server successfully.........when the problem arise is
when am overiding the file using " file ",its EOF cant read by server

