I have a java application which is a listener receiving data from different gps devices. The programme have been working fine. Each time I receive a string it will read process and store into a local database(mysql) and also write into a text file. Off late I notice the text file is having a lot of corrupted data. What could be the cause can it be the programme itself or the network connection which is receiving it? Any idea please ?