What do I need to use to write out my TAB character?
Use the escape character \t
in a string literal to print a tab:
NSString *string = @"This is a tab:\tThis is tabbed!\n";
You can put \t
in any string literal and do with it what you want from there: write it to a file, to STDOUT
, whatever.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With