- Home /
How to add text to an external .txt file?
I have a .txt file that I want to put a string in to. Is there a way to get a text file from the location of the build and edit it?
Comment
Answer by ShadoX · Jun 27, 2020 at 07:30 AM
I think you should be able to write to the games folder (or at least somewhere inside it), by simply specifying a folder, rather than the full path.. like for example:
System.IO.File.WriteAllLines("folder_name\your_text_file.txt", lines);
Your answer
Follow this Question
Related Questions
WWW request works in Editor but not in IOS? 1 Answer
Import .txt and make vector3 array 2 Answers
How to make a map from .txt file 0 Answers
Modifying a text file outside unity. 1 Answer
Custom Font 1 Answer