获取表单中的文件路径以追加文件 [英] Get file path in form to append the file

查看:102
本文介绍了获取表单中的文件路径以追加文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在准备一个带有不同选项保存"和另存为"的Windows窗体.与记事本完全相同.我想添加此保存并另存为我的保存形式,我已经完成了,我只需要保存部分的代码,因为文件已追加,但是我需要带有扩展名的完整文件路径来追加文件.如何获取此文件小路?还是间接获取当前工作文件的完整路径?我不知道初始路径,因为可以重新创建文件然后将其保存,也可以将其打开.与记事本完全相同.提供完整代码..

I am preparing a windows form with to different option "save" and "save As". Exactly same as in notepad. I want to add this save and save as in my form Save AS i have done i only need the code for save part in that the file is appended but i need the full file path with extension to append the file.How to get this file path? Or indirectly how to get the full path of current working file ? i dont know the initial path because the file can be either newly created and then saved or it can be opened.Exactly the same as in notepad.Supply the full code..

推荐答案

http://msdn.microsoft.com/en-us/library/sfezx97z.aspx [^ ]


这篇关于获取表单中的文件路径以追加文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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