Example #1
0
        /// <summary>
        /// Load a DAT file into a DATFile instance
        /// </summary>
        /// <param name="filePath">File path to load the DAT file from</param>
        public static DATFile Load(string filePath)
        {
            DATFile DAT = new DATFile();

            DAT.SetEncoding(DAT.GetEncodingFromFileName(filePath));
            DAT.Parse(File.Open(filePath, FileMode.Open));

            return(DAT);
        }
Example #2
0
        /// <summary>
        /// Load a DAT file into a DATFile instance
        /// </summary>
        /// <param name="filePath">File path to load the DAT file from</param>
        public static DATFile Load(string filePath)
        {
            DATFile DAT = new DATFile();

            DAT.SetFilePath(filePath);
            DAT.SetEncoding(DAT.GetEncodingFromFileName());
            DAT.Parse();

            return(DAT);
        }