creating txt file

is it possible? to create a file. Like saving some information for the future use of the game, so later the txt file can be loaded and the information used? how would one do that? what classes/functions could be used to do that? thanks

you'll want to be using something along the lines of this: http://msdn.microsoft.com/en-us/library/system.io.file_members.aspx

WriteAllText is a good bet for writing to a file, takes a file path and a string to put in it

If all you want to do is save the game state, using PlayerPrefs is simpler than messing with files.