开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜