public static void Write(string str) { if (is_logging_) { IJFile.WriteAppend(filename_, str); } }
public string GetFilename() { if (temp_filename_ == "") { if (is_confirm_exist_) { is_exist_ = File.Exists(filename_); is_confirm_exist_ = false; } if (is_exist_) { temp_filename_ = IJFile.GetTemporaryFileName(Path.GetDirectoryName(filename_), Path.GetExtension(filename_)); } else { temp_filename_ = "dummy"; } } return(is_exist_ ? temp_filename_ : filename_); }