Maybe you are using "not reuse" option when
dealing with resource, and that might be problem
for deleting current line from resource - instead
it is deleting next resource line.
If i write data into a single file using multiple threads then is there any chance of data loss ? Is this method okay to write file or some other method should be used to avoid data loss(if it happens) ?
Thanks
There should be no data loss, but it is still better to use the resource for this purpose