Hoping you can help out here. I'm creating a file an appending lines to this file using a Crypto stream.
If I write out all the lines at once then the file will encrypt/decrypt correctly.
But if I open the file in append mode, append a line, close then file. Then only the 1st line decrypts correctly, the other lines return back rubbish.

I am wondering if this is the correct behaviour. I'm trying to build up a text file of encrypted details users enter over the course of a day; and then batch processing them at the end of a day.
The overhead of decrypting and encrypting the whole file just to add a single line to it would seem to be excessive as I could end up with 1000's of lines over the course of a day.

I'm using the excact same Crypto Provider with the same Initialisaion Vector and key on all access to the file?

Am I doing something wrong or is it not possible to append to an encrypted file?

Cheers
Noel