You just use .NET classes for that (System.IO namespace). Googling for something like "C# file reading" reveals lots of tutorials as well. Reading and writing files is disabled in the web player for security reasons.
Someone here shared these links: Read text: http://msdn2.microsoft.com/en-us/library/db5x7c0d.aspx Write text: http://msdn2.microsoft.com/en-us/library/6ka1wd3w.aspx
This may or may not be useful but is what I used for some testing purposes and and XML. Code (csharp): import System; import System.IO; import System.Xml; function Start(){ var xmlFile = Application.dataPath + "/test.xml"; if (File.Exists(xmlFile)){ var sr = new StreamReader(xmlFile); var txt = sr.ReadToEnd(); var xml = new XmlDocument(); xml.LoadXml(txt); Debug.Log(xml.FirstChild.ChildNodes.Count); for (var i=0;i<xml.FirstChild.ChildNodes.Count;i++){ Debug.Log(xml.FirstChild.ChildNodes[i].NodeType + " " + xml.FirstChild.ChildNodes[i].OuterXml + " " + xml.FirstChild.ChildNodes[i].Attributes.Count); } } } And here is the XML I used for a sample: Code (csharp): <test> <some> <someInfo att='someText'>And Some Crap</someInfo> </some> <another someAtt='anAtt'> <someInfo>And Some Crap</someInfo> </another> <onemore> <someInfo att='someText'>And Some Crap</someInfo> </onemore> </test> HTH someone. -- Clint
Ah great, thank to both of you, I now have the objects in my game all being placed via a 'map file'. Thanks! ~Thordis