Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert a back space after the end of string

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

like image 763
Naveen Avatar asked Jul 01 '13 15:07

Naveen


People also ask

What is the symbol pair used to code a backspace within a string value?

The '#” represents a backspace.


1 Answers

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.
like image 193
Maku Avatar answered Sep 19 '22 17:09

Maku