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

[903 byte] By [sivanandana] at [2007-11-27 11:40:15]
# 1

Please stop crossposting this topic. I can help you but I will only do so in the original posting.

ejpa at 2007-7-29 17:30:50 > top of Java-index,Core,Core APIs...
# 2

stick with your original thread:

http://forum.java.sun.com/thread.jspa?threadID=5198447&tstart=0

And answer the question.

masijade.a at 2007-7-29 17:30:50 > top of Java-index,Core,Core APIs...