What I really want to do is to delete one line from a file. My idea is to read all data before the line I want to delete and save it into a buffer. Then I read all data after the line I want to delete until the end of the file. Once I have saved all data, I try to delete the file but it fails. I want to delete the file just to create another one with the same filename and write the data I have saved into it. But everytime I try to delete the file it fails, and I don't know what to do. Could you help me? Thanks.

Here is part of the code I use to do all this:
取上下文的小片断代码   class GestorBotonSI implements ActionListener

相关文章:

  • 2021-12-28
  • 2021-12-31
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-11-07
相关资源
相似解决方案