C# - Creating FileStream start at certain row?
Posted on 2012-08-13
I am reading in an excel file into a FileStream as I am using an excel reader with that stream. User will be inputting what row is the header row in a particular file. Have files that come in where I need to eliminate some garbage header rows from the file. So right now I have for example:
FileStream fileStream = new FileStream(dto.DataSourceFile.FullFilePath, FileMode.Open, FileAccess.Read);
How do I read in the file starting at a certain row for example Row 5 as an example?