Xml and txt serialization for iPhone basic License

Hi dudes.
Can i use it with Unity iPhone Basic license :

import System.Collections;
import System.Xml;
import System.Xml.Serialization;
import System.IO;
import System.Text;

   var XmlizedString : String  = null;
   var memoryStream : MemoryStream  = new MemoryStream();
   var xs : XmlSerializer = new XmlSerializer(typeof(UserData));
   var xmlTextWriter : XmlTextWriter  = new XmlTextWriter(memoryStream, Encoding.UTF8);
   xs.Serialize(xmlTextWriter, pObject);
   memoryStream = xmlTextWriter.BaseStream; // (MemoryStream)
   XmlizedString = UTF8ByteArrayToString(memoryStream.ToArray());
   return XmlizedString;

for xml write and serialize.

Or can i use with iPhone Basic that :
import System.IO;
import System.Text.RegularExpressions;

Use StreamReader and then use StreamReader and then parseInt something like that :

var ss = new StreamReader("data.txt");
var line = sr.ReadLine();
var sizeData = line.Split(","[0]);
somevalue = parseInt(sizeData[0]);

``

You can not use System.XML with iPhone Basic due to the size constraints of libraries in the iPhone SDK.

RegEx should work I think.

In both cases though you need to use the correct path, as the data won’t be in the same folder as your app so “data.txt” will fail.