问题描述
我在程序中有一段历史,记录了程序的内容
目前正在执行.
现在,我想在首次运行时创建一个文本文件,将其写入exe文件夹以写入
每次将此文档放入此文件中.
我正在使用一个类将文档编写到富文本框中.
执行本文档的类的方法如下所示:
i have a sort of history in my programm wich, documents what the programm
is currently doing.
Now i want to create a textfile on first run, into the exe folder to write
this documentation every time into this file.
I am using a class for writing the documentation into a rich textbox.
the method of the class wich perform this documentation is looking like this:
public void Aktual(int number)
{
switch(number)
{
case 1:
string Text1 = "Hi im text1, this is currently doing";
break;
//And further
}
}
所以我的问题是:
-在exe文件夹中创建文本文件
求助:(-一般写入此现有文件,不要覆盖)
求助:(-打开此现有文本文件进行查看)
谢谢
ps .:如果您需要更多说明,请告诉我
问候Niko
so my problems are:
- Creating a textfile into exe folder
SOLVED: (- Write in general into this existing file, to dont overwrite)
SOLVED: (- Open this existing textfile to view it)
Thank you
ps.: Let me know if you need more explanation
greets Niko
推荐答案
这篇关于C#将文本文件写入exe文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!