Doubt on processing files created from Input stream
There is one client application that sends data to a port at a very high speed. Data come to the port as line by line.
One thread reads these line data from the server port by using BufferdReader.readline() and creats temporary files ie each line data will be saved to a file. To be more precise, with every line, a different temp file will be created.
Another thread should fetch temp files from the same folder where temp files are getting created.
These fetched temp files are then taken for processing ( Identifying data, parsing, populating java beans and database insertion.)
I am having problem in fetching files from the directory and processing.
Can anyone give me a tip to accomplish this task.

