如何删除由Java程序创建的具有错误路径的文件

huangapple go评论70阅读模式
英文:

how can i delete a file with wrong path, created by java program

问题

如何删除一个由Java程序创建的文件。我有一个名为con.txt的文件,位于一个目录中,这个文件是我学习Java语言之前创建的。但是当我尝试打开这个文件时出现了问题(可能是路径),记事本显示'无法找到\\. \ con.txt',是否要创建新文件'如何删除由Java程序创建的具有错误路径的文件'。我尝试创建一个新文件,但是新文件和旧文件仍然存在。你能告诉我如何删除这个文件吗?非常感谢。

英文:

How can I delete a file made up of a java program. I have a file named con.txt located in a directory, this file is made up of before, when I learned java language. But something is wrong (probably the path) when I try to open the file then notepad display 'can not file \\. \ con.txt, do you want create new file '如何删除由Java程序创建的具有错误路径的文件'. I try to create a new file but create a new one and the old file still exists. Can you show me how to delete this file, thank you very much

答案1

得分: 0

删除整个程序文件夹。
你可以尝试使用第三方软件来完成这个任务。

英文:

Delete the entire program folder.
You may want to try using third-party software for that.

huangapple
  • 本文由 发表于 2020年8月14日 16:20:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/63409110.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定