When I’m trying to set position of filestream it throws An unhandled exception of type ‘System.IO.IOException’ occurred in System.IO.dll
string filenamepath = @ "\SD\" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xml"; fs = new FileStream(filenamepath, FileMode.Append, FileAccess.Write); fs.Position = 200; XmlWriter xmlFileWriter = System.Ext.Xml.XmlWriter.Create(fs); xmlFileWriter.WriteStartElement("event");
Did someone had such a problem with filestream? Don’t know if it’s MF issue or EMX SD card handling thing?
BTW: fs.Position property has value 261 when it’s throw an error so setting it to 200 shouldn’t be any problem I suppose.