C# 클래스 CrossStitchCreator.CSVReader

A class for reading .CSV files
파일 보기 프로젝트 열기: adrianj/CrossStitchCreator 1 사용 예제들

공개 메소드들

메소드 설명
CSVReader ( Stream stream ) : System

Initialises a new CVSReader around the given Stream.

CSVReader ( string filename ) : System

Initialises a new CSVReader and sets up a FileStream on the given filename. Will throw some kind of Exception if the filename is no good.

ReadFile ( ) : string[][]

Reads the file, and returns an array of strings organised [Column][Row]

비공개 메소드들

메소드 설명
countRows ( ) : void

Reads through the stream once and populates properties like NumberOfRows, NumberOfColumns and FirstRow.

initialise ( ) : void

Reinitialises the stream back to the beginning

readLine ( ) : string[]

메소드 상세

CSVReader() 공개 메소드

Initialises a new CVSReader around the given Stream.
public CSVReader ( Stream stream ) : System
stream Stream
리턴 System

CSVReader() 공개 메소드

Initialises a new CSVReader and sets up a FileStream on the given filename. Will throw some kind of Exception if the filename is no good.
public CSVReader ( string filename ) : System
filename string
리턴 System

ReadFile() 공개 메소드

Reads the file, and returns an array of strings organised [Column][Row]
public ReadFile ( ) : string[][]
리턴 string[][]