help me how to solve this problem

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:40]
# 1

OK buddy that's enough crossposting. What's the problem with answering the questions you were asked in the original post?

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

can u please see the question sir.

that is the problem.

CLient:

in the client side am processing Index.txt file. i.e: copy the content from index.txt and then do some process such as removing some line and then update remaining datails in the index.txt.

afterwards i send to server.

Server:

in the server side i can able to read all the data.but after it reaches the end of data it waiting for EOF.so it run infinite.

But if am manually create the index.txt file its processed by server.and terminate.

Message was edited by:

sivanandan

sivanandana at 2007-7-29 17:33:14 > top of Java-index,Core,Core APIs...
# 3

Stick with the original thread:

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

Answeer the questions there and things will continue.

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