why does this reader read off strange bits of data?

后端 未结 1 1201
时光说笑
时光说笑 2021-01-16 14:02

I\'m trying to read a text file, i\'m using fileImputStream, and reading all the lines into a single String then outputing it into the console (System.out)

When I tr

相关标签:
1条回答
  • 2021-01-16 14:09

    I think your text file is not plain text but rather a RTF file which supports formatting. When you view it you probably use a tool which supports RTF, such as TextEdit. If you view it with less or cat you should also see the RTF markup.

    0 讨论(0)
提交回复
热议问题