Johan Heyvaert - 2012-05-03

Hello,

First of all, thanks for this fantastic library.

I've fixed a bug in my local version and was wondering if this could be modified here too.

Here is my change:

// read a content of lfile
//FileStream fos = File.OpenWrite(lfile);
// bugfix: 
// - The above line will overwrite the contents of an existing document, but, if the new content is shorter, then a part of the old content remains!!! 
// - File.Create creates a new file if it doesn't exist and reuses & clears an existing one.
FileStream fos = File.Create(lfile);

Thanks again.

Kind regards,
<Johan>