private bool CheckFileWrite() { string filename = ""; string test_text = "testtest"; try { filename = IJFile.GetTemporaryFileName(Directory.GetCurrentDirectory(), "txt"); IJFile.Write(filename, test_text); string content = IJFile.Read(filename); return(content == test_text); } catch (Exception) { return(false); } finally { try { if (filename != "") { File.Delete(filename); } } catch (Exception) { } } }