public void Output(string destPath, ref EvalueDigitSymbol valuator, ref FEITTimer timer) { StreamWriter sw = null; try { sw = File.CreateText(destPath); createHeader(ref sw); writeContent(ref sw, ref valuator, ref timer); sw.Close(); } catch (Exception e) { Console.WriteLine(e); } }
private void writeContent(ref StreamWriter sWriter, ref EvalueDigitSymbol valuator, ref FEITTimer timer) { string content = ""; int len = valuator.mTF.Count; for (int i = 0; i < len; i++) { content = ""; content += "block" + (i + 1).ToString() + "\t"; content += valuator.mTF[i].ToString() + "\t"; content += valuator.mLeftInput[i].ToString() + "\t"; content += valuator.mLeftAnswer[i].ToString() + "\t"; content += timer.mTracker[i * 2].ToString() + "\t"; content += valuator.mRightInput[i].ToString() + "\t"; content += valuator.mRightAnswer[i].ToString() + "\t"; content += timer.mTracker[i * 2 + 1].ToString(); sWriter.WriteLine(content); } }
public ListenerDigitSymbol(PageDigitSymbol _page) { mPage = _page; mEvalue = new EvalueDigitSymbol(_page); }