コード例 #1
0
        /// <summary>
        /// parse a CSV file that was dumped by Progress.
        /// that is the fastest way of dumping the data, but it is not ready for being imported into PostgreSQL.
        /// </summary>
        /// <param name="AInputFileDGz">the path to a gzipped csv file</param>
        /// <param name="AColumnCount">for checking the number of columns</param>
        public TParseProgressCSV(string AInputFileDGz, int AColumnCount)
        {
            fs         = new FileStream(AInputFileDGz, FileMode.Open, FileAccess.Read);
            gzipStream = new GZipInputStream(fs);
            MyReader   = new StreamReader(gzipStream, ProgressFileEncoding);

            csvfile      = new CSVFile(MyReader, AColumnCount, ' ');
            FColumnCount = AColumnCount;
        }
コード例 #2
0
        /// <summary>
        /// parse a CSV file that was dumped by Progress.
        /// that is the fastest way of dumping the data, but it is not ready for being imported into PostgreSQL.
        /// </summary>
        /// <param name="AInputFileDGz">the path to a gzipped csv file</param>
        /// <param name="AColumnCount">for checking the number of columns</param>
        public TParseProgressCSV(string AInputFileDGz, int AColumnCount)
        {
            fs = new FileStream(AInputFileDGz, FileMode.Open, FileAccess.Read);
            gzipStream = new GZipInputStream(fs);
            MyReader = new StreamReader(gzipStream, ProgressFileEncoding);

            csvfile = new CSVFile(MyReader, AColumnCount, ' ');
            FColumnCount = AColumnCount;
        }