x


How to write & read a string into a text file?

Can you write a string variable in Javascript to a text file and then be able to read it back into the game using the text file? Thank you for your help.

more ▼

asked Apr 08 '12 at 10:13 PM

randombinaries gravatar image

randombinaries
16 7 9 11

I searched UnityAnswers for the search string "file io" and found lots of matches. I suggest you try the same and see if any of these meet your needs.

Apr 08 '12 at 10:32 PM kolban
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Look into TextAsset, PlayerPrefs and file IO. One of these will be a solution to your problem.

more ▼

answered Apr 09 '12 at 03:03 PM

Paulius Liekis gravatar image

Paulius Liekis
7.3k 16 24 45

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3726
x3453
x819
x796
x12

asked: Apr 08 '12 at 10:13 PM

Seen: 727 times

Last Updated: Apr 09 '12 at 03:03 PM