Read a text file used by a java application

Hi,

I want to read a text file used by a java application,

Java application writeasynchronously in file and my C# application must read this file asloasynchronously.

Sometimes on C# application i have this exception"Object reference not set to an instance of an object." when i want to obtain a StreamReader on file.

Sometimes on Java application i have this exception"java.io.FileNotFoundException : File already used by another process." when application want obtain a FileWriter stream on file.

Thanks in advance for your help.Smile

Best regards,
Dom

[737 byte] By [drighetto] at [2007-12-16]
# 1
Hi,

the java exceptions says the file was not closed by your .net app. The second I don't know that may be lots of things. It would be very helpful if you could provide more code.

rgerbig at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified