- Home /
Write to file and display data
Anyway just want to ask how do i write to the file and then after that read the data that i have write to the file??
So basically the flow i want is like that, all the data to be written to the file will be save into an array, after all data are ready, all the data collected will be write to the file. After that i want it to display the data that have write into the file. Appreciated for some guide how to do.
http://imageshack.us/photo/my-images/577/textfile.png/ -> something like that. I am thinking that each player will have one file. Something like that. I hope i am clear.
Just to start off, you might want to use PlayerPrefs : http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html
i.e. save integer (SetInt) : http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.SetInt.html
i.e. load integer (GetInt) : http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.GetInt.html
Answer by Viluredfish · Mar 27, 2012 at 01:18 PM
http://answers.unity3d.com/questions/23578/how-do-i-write-a-line-of-text-to-a-file.html
http://forum.unity3d.com/threads/14400-Can-we-use-System.IO-and-other-.NET-classes
and the one helped me a lot : http://www.youtube.com/watch?v=Nc31yvpLlco
Your answer
![](https://koobas.hobune.stream/wayback/20220613065605im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio Analysis? 1 Answer
Checking Data Amount in PlayerPrefs... 0 Answers
Mapping external data to a mesh 1 Answer
Saving important data securely 2 Answers
www.data to array 1 Answer