How to insert a back space after the end of string

Naveen picture Naveen · Jul 1, 2013 · Viewed 23.5k times · Source

Is it possible to insert a backspace after a string.If possible then How to insert a back space in a string??

Answer

Maku picture Maku · Jul 1, 2013

The escape sequence for backspace is:

\b

https://social.msdn.microsoft.com/Forums/en-US/cf2e3220-dc8d-4de7-96d3-44dd93a52423/what-character-escape-sequences-are-available-in-c?forum=csharpgeneral

C# defines the following character escape sequences:

  • \' - single quote, needed for character literals
  • \" - double quote, needed for string literals
  • \\ - backslash
  • \0 – Null
  • \a - Alert
  • \b - Backspace
  • \f - Form feed
  • \n - New line
  • \r - Carriage return
  • \t - Horizontal tab
  • \v - Vertical quote
  • \u - Unicode escape sequence for character
  • \U - Unicode escape sequence for surrogate pairs.
  • \x - Unicode escape sequence similar to "\u" except with variable length.