Backspace \b 关于 OS 的 Chacacter 作用域?

Backspace \b Chacacter Scope with regard to OS?

我查了很多遍,但找不到有关 Java 中 \b 字符范围的信息。

注意:我正在使用 Eclipse,并且知道它提供了对字符的有限支持。 (如果你想回答附带问题:寻找支持 \b 字符的控制台 eclipse 插件)

我想知道两件事:

Can I write the backspace char to file to delete previously written test? (I don't need to do this, but it reduces compatibility if I can't for my program)

Can I delete a newline (\r\n or either) character with \b?

Can I write the backspace char to file to delete previously written test?

没有

Can I delete a newline ("\r\n" or either) character with \b.

没有

\b 这样的字符唯一会被解释为这样的情况是当您向屏幕、控制台或终端写入时。

写入文件的字符不会这样处理。

这不是 Java 特定的限制。相反,它是操作系统1处理将数据写入文件的方式所固有的。


1 - 也就是...我遇到的每个OS。