CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: How to decode an escape sequence?

  1. #1
    Join Date
    Jun 2002

    How to decode an escape sequence?

    In my text file, there is a line:


    I use CStdioFile::ReadString() to read the line into a string, but the string is not composed of four tab characters, instead, it is still "\t\t\t\t". Therefore, I wonder how can I get these escape sequences decoded? Thank you.

  2. #2
    Join Date
    Aug 1999
    Well, I don't know is there is a function to decode ALL escape chars, but for your problem a

    sMyLine.Replace("\\t", "\t")

    should do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)