开发者

writing 'TAB' character to a text file in objective-c?

开发者 https://www.devze.com 2023-01-26 14:12 出处:网络
What do I need to 开发者_StackOverflow中文版use to write out my TAB character?Use the escape character \\t in a string literal to print a tab:

What do I need to 开发者_StackOverflow中文版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.

0

精彩评论

暂无评论...
验证码 换一张
取 消