예제 #1
0
파일: manager.cs 프로젝트: bsv798/p3fes
        public void LoadJinnText(string fileName)
        {
            MsgTextArchive arch;

            arch = new MsgTextArchive();
            arch.JinnLoadText();

            if (!Exists(arch))
            {
                throw new NullReferenceException(string.Format("jinn file '{0}' doesn't match any loaded file", fileName));
            }
            else
            {
                Streams.writer.strWrite.WriteLine(fileName);
                arch = (MsgTextArchive)Find(arch);
                foreach (var desc in arch.descs)
                    Streams.writer.strWrite.WriteLine(desc.fileName);
                Streams.writer.strWrite.WriteLine();
            }
        }