Sorry, but there was some other problem. The code is working right now. Thanks all
I have the following code to create a file, if it does not exist and it already exists, then overwriting it:
Create FileStream fsExe = File (Destxpath, 4096); BinaryWriter bw = new BinaryWriter (fsExe); I have ever written to Binder, instead of overwriting the original file it is being added to "Destxpath".
Anyone have any ideas, why is this happening?
Why this happens because you never stop the underlying stream and write the same I do not reuse the binary writer, I would like to add the syllabus to the file. I recommend stopping the stream after writing your file:
(var stream = file.Create (DestExEPath , 4096)), use the author here to add {// file (var author = new binaryworcher (stream))). }
Comments
Post a Comment