FiNaL Mirage:and read them based on what line you stored the variable in
Another way is to use Xml Serialization. I made a tutorial about how to check whether a file exist, how to store and read data from it. It's easier, because, you make a structure with the Serializable attribute, in which you declare objects. Then, you assign these objects the value of the objects you want to save. After that, you just have to read the file and to use the structure's objects name. For instance, you want to save a position. you make a strucure called DataToSave with the attribute Serializable, inside you declare Vector3 position; Then you make an object of the structure e.g. called "data" and give data.position the position vector3 value. Then you store the data inside a file. When reading, you simply assign to your position vector3 the value inside data.position.
This, way, you don't have to bother with looking for a given line.
http://xnameetingpoint.web.officelive.com/EnglishStorage.aspx
The saved file have this look :
You speak English, Spanish or French ? You need tutorials in your language ? You can make tutorials in your language ? Check :
this site