在没有保存/打开对话框的情况下打开和保存文件 [英] opening and saving file without save/open dialogue

查看:30
本文介绍了在没有保存/打开对话框的情况下打开和保存文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在没有对话的情况下进行文件 I/O.文件始终相同,位置也始终相同,因此我不需要对话.我想知道我该怎么做?在没有对话的情况下打开、写入和保存到文件的代码是什么.

i would like to do FILE I/O without a dialogue. the file always be the same and the location will always be the same, therefore i dont need a dialogue. i would like to know how can i do this? what is the code to open, write, and save to a file without the dialogue.

推荐答案

对话没有打开文件.它选择要打开或保存的文件.打开或创建所选文件仍然取决于应用程序.

The dialogue does not open a file. It selects a file for open or save. It's still up to the app to open or create the file that was selected.

.NET 中的基本文件 I/O

这篇关于在没有保存/打开对话框的情况下打开和保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆