コード例 #1
0
ファイル: CSVFileStream.cs プロジェクト: Xtremrules/dot42
        public CSVFile(Stream stream, QuoteChar quoteChar)
        {
            this.stream = new StreamReader(stream);

            dialect = new DialectAndColumnDeterminer(quoteChar);
            dialect.Feed(this.stream.ReadLine(), 0);
            secondLine = this.stream.ReadLine();
            dialect.Feed(secondLine, 1);
            dialect.Done();
        }
コード例 #2
0
        public CSVFile(Stream stream, QuoteChar quoteChar)
        {
            this.stream = new StreamReader(stream);

            dialect = new DialectAndColumnDeterminer(quoteChar);
            dialect.Feed(this.stream.ReadLine(), 0);
            secondLine = this.stream.ReadLine();
            dialect.Feed(secondLine, 1);
            dialect.Done();
        }