Read Player's Input and Output to File?

Can I use Unity to (1) let player to write some text inputs, and (2) hopefully output the player’s input to a file? No specific requirements on file format. Any advice will be appreciated! Thank you.

See the System.IO class (won’t work in a web player).

–Eric

Thanks for the advice! Indeed it seems everyone is trying System.IO class~ I’ll definitely look into it. Thanks!

If we really want to publish the game online, are there any alternatives at all? For example, if we don’t want the player to input texts, but click on multiple choices instead; or if we simply don’t want the player to input anything at all, but just record how many times they pick up an object or touch the trigger, is it still possible to output such recordings? Is it possible to keep record of the value of a variable by the end of the game?

Thanks again for your advice.

You can do I/O with the web player, but it would have to use different techniques and go through a server rather than the user’s local HD. Also, for simpler things you can use PlayerPrefs for local persistent data storage (up to 1MB; only the web player has a size limitation for this).

–Eric