How do I get rid of that '@' symbol from a string? I am using FileStream.WriteByte

  • Thread starter Thread starter Dan V.
  • Start date Start date
D

Dan V.

How do I get rid of that '@' symbol from a string?
I am tyring to use FileStream.WriteByte but it does not like it. I don't
want to write that '@' symbol to the file either.

s = @"c:\text1.txt"

bytes = Encoding.UTF8.GetBytes(s);

fs.Write(bytes, 0, bytes.Length);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top