Question by
legowill6 · Aug 17, 2017 at 03:40 PM ·
readwrite datatext file
Reading/writing changing integer variable. (JS)
Hi all,
I've looked at nearly all articles about reading and writing data to text files, however it seems to be limited in JS and some of the code seemed out dated.
So what I need to do is write an integer variable to a file every frame so you could use the Update() function for that. I've tried multiple different ways but I just can't get it to work.
So it should be saving a changing integer value to a file every frame.
Then it should be able to read the integer value and store it as a separate variable.
I really would appreciate any advice or help, I'm very new to Unity so apologies if it seems obvious in any way.
Thank you in advance.
Comment