Answer the question
In order to leave comments, you need to log in
How to access the file?
I see this for the first time. In this one I have the following code:
string path = @"text.txt";
private void Create()
{
if (!File.Exists(path))
{
File.Create(path);
}
}
private void Load()
{
string allText = File.ReadAllText(path);
}
Answer the question
In order to leave comments, you need to log in
File.Create(path);
and closing of the file after creation where? Therefore, it is used by another process.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question