StreamWriter.BaseStream.Seek Help ???

  • Thread starter Thread starter Hai Nguyen
  • Start date Start date
H

Hai Nguyen

Hi Everyone

I'm building a C# console application. I need to write data from a text
file. The text is something look like this

"...From a C++ view there's no difference , between an abstract class
and an interface..

By some reasons, I want to move the "," close to "difference", I want it
looks like this

"...From a C++ view there's no difference,.. "

I decided to use outfile.BaseStream.Seek(0,SeekOrigin.End-1) to move the
pointer of the output file back one place. I've been trying to do that but I
failed

The final should look like this
"...From a C++ view there's no difference, between an abstract class and an
interface... "


Pleae advice me

Thanks
 
Back
Top