-1

I'm making a simple text editor in .net. I need to know how to get two things to work:

  1. I need to know the full path of the current working file in the editor
  2. I need to prompt the user to save the file on exit if it's not already saved (at all)

Please explain on how to get the above implemented. Thanks! :)

4

1 回答 1

2

查看OpenFileDialog将解释如何从文件系统中选择文件的课程。这是您可以开始的地方。

保存文件很简单,你可以使用System.IO;检查文件是否存在 例如FileFileInfo类开始,然后回到这里进一步的问题,这将是不可避免的。

祝你好运。

于 2012-07-09T22:55:22.667 回答