예제 #1
0
        public override string ToString()
        {
            StringBuilder strBuilder = new StringBuilder();

            foreach (string str in importResultList)
            {
                strBuilder.Append(str + FamilyUtility.GetLinefeed());
            }
            return(strBuilder.ToString());
        }
예제 #2
0
        public void WriteToFile(string filename)
        {
            string directory = "/tmp/";

            if (!Directory.Exists(directory))
            {
                directory = "";
            }

            if ((directory.Length > 0) && filename.Contains(directory))
            {
                filename = filename.Substring(directory.Length);
            }
            using (StreamWriter writer = new StreamWriter(directory + FamilyUtility.MakeFilename(filename + "_import_result.txt")))
            {
                foreach (string str in importResultList)
                {
                    writer.Write(str + FamilyUtility.GetLinefeed());
                }
            }
        }