public HtmlBase(OutputData opdata, MainForm form) { eWriter = new EraStreamWriter(form); output = opdata; }
//自分用 //プログラムにプログラムを書かせる //filepath1 html filepath2 txt public void WriteProgram(string filepath1, string filepath2) { string str = ""; if (!File.Exists(filepath1)) return; EraStreamReader eReader = new EraStreamReader(mf); EraStreamWriter eWriter = new EraStreamWriter(mf); eWriter.MakeFile(filepath2); if (!eReader.Open(filepath1)) { //-1が返ったら終了 return; } try { while (true) { str = eReader.ReadLine(); if (!eReader.EOF()) { //空文字で無ければ出力 if (str != "" && str != "\n" && str != null) { eWriter.WriteLine("eWriter.WriteLine(\"" + str + "\");"); } } else { break; } } eReader.Close(); eWriter.Close(); } catch { eReader.Close(); eWriter.Close(); } }
/*-----------------------------------------------------------WriteStyle-------------------------------------------------------------*/ //スタイルを記述する private void WriteStyle(EraStreamWriter eWriter) { }
public StyleList(EraStreamWriter writer,OutputData opdata) { eWriter = writer; output = opdata; }