the cordova-plugin-file that I use for my ios application does not support FileWriter.write(blob) on windows10.
After looking for an alternative, I really can't find anything. Any ideas how to tackle this issue?
Thx in advance
Printable View
the cordova-plugin-file that I use for my ios application does not support FileWriter.write(blob) on windows10.
After looking for an alternative, I really can't find anything. Any ideas how to tackle this issue?
Thx in advance
You may try this code:
Code:public void LogFile(string sExceptionName, string sEventName, string sControlName, int nErrorLineNo, string sFormName)
{
StreamWriter log;
if (!File.Exists("logfile.txt"))
{
log = new StreamWriter("logfile.txt");
}
else
{
log = File.AppendText("logfile.txt");
}
// Write to the file:
log.WriteLine("Data Time:" + DateTime.Now);
log.WriteLine("Exception Name:" + sExceptionName);
log.WriteLine("Event Name:" + sEventName);
log.WriteLine("Control Name:" + sControlName);
log.WriteLine("Error Line No.:" + nErrorLineNo);
log.WriteLine("Form Name:" + sFormName);
// Close the stream:
log.Close();
}
}