Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您发现“文件错误”一词时,我很难开发一个 java 代码来删除文件中的整行。
当代码在文件 (.txt) 中找到短语“文件错误”时,它应该删除包含该短语的整行。
有人可以帮我吗?
您可以执行以下步骤: