Hi,
I'm having an issue with a file a write and rewrite over and over (sometimes it arrives with the previous data), and I'm trying to figuring out the case.
One thing I have doubt about is regarding the closing. I don't know if I'm using the correct methods and in the correct order to close the file. Out is the OutputStream, tw is the TextWriter:
.
.
.
tw.Initialize(Out)
tw.WriteLine(S)
tw.Flush
tw.Close
Out.close
I had the Out.Flush sentence also, but I've removed it since I was getting an exception.
Any ideas?
Regards!