内部应用程序文件. [英] Internal Application Files.

查看:74
本文介绍了内部应用程序文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好C成型机,
我正在开发一个应用程序,用户可以更改按钮的标签并将其保存到文件中,以便他们可以随时选择对其进行编辑.我需要一个内部文件系统或其附近的文件.

在启动时,我有一个文本框和两个按钮.用户输入文本,然后单击保存"按钮,并更改另一个按钮的标签.

System.IO.File是我用来读取/写入的文件.目前可根据需要工作.以下是button_click事件.

button2.Text = textBox1.Text;
           字符串s1 = button2.Text;
           字符串s2 = s1;
            System.IO.File.WriteAllText(@"C:\ Users \ Nixx \ Documents \ Visual Studio 2015 \ Projects \ simple test \ simple test \ TextFile3.txt",s2);


我有这样的东西是表格的开始,但我需要一个更好的主意,如何在内部保存字符串.

请注意,我确实了解基于c ++的编程基础,但是Visual Studio和C#是新手..

感谢您的阅读...

缺口-


Hello C shapers,
I am working on a application where a user is able to change the label of a button and it save to a file so they can edit it whenever they choose to do so. I need a internal file system or something close to it. 

On start up I have a textbox and two buttons. User enters text then hits the save button and it changes the label of the other button.

System.IO.File, is what I am use to read/write. Works as need for the moment. Below is button_click event.

button2.Text = textBox1.Text;
            string s1 = button2.Text;
            string s2 = s1;
            System.IO.File.WriteAllText(@"C:\Users\Nixx\Documents\Visual Studio 2015\Projects\simple test\simple test\TextFile3.txt", s2);


I have something like this is the start of the form but i need a better idea on how to save the strings internally.

To note I do have understanding of programming basics based on c++ but am new to visual studio and C#..

Thank you for reading...

Nick-


推荐答案

尼克,

欢迎来到MSDN论坛.

Welcome to the MSDN forum.

请参阅您的描述,您的问题与C#开发有关.由于我们的论坛将讨论VS IDE,因此,我将帮助您将此线程移至相应的论坛以寻求更专业的支持,谢谢您的理解.

Refer to your description, your issue is about the C# development. Since our forum is to discuss the VS IDE, I will help you move this thread to the appropriate forum to seek for a more professional support, thank you for your understanding.

最诚挚的问候,

萨拉


这篇关于内部应用程序文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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