Answer the question
In order to leave comments, you need to log in
Why is the modified file not immediately read?
I take a room in the editor and on the basis of this I generate a text file
1st option
string tx ="Some Info....";
if(File.Exists(PathFile)){
using(FileStream fs = new FileStream(PathFile, FileMode.Truncate)){
using(StreamWriter wr = new StreamWriter(fs)){ wr.Write(tx); }
}
}
string tx ="Some Info....";
if(File.Exists(PathFile)){
StreamWriter sw = new StreamWriter(PathFile);
sw.WriteLine(tx);
sw.Close();
}
string tx = Resources.Load<TextAsset>(PathFile).ToString();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question