Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
how to handle fixed width text files with no header rows #6
Toolkit assumes first row of the file is always the header row. If you stumble across a file that doesn't have a header row, it might be nice to toggle a property in the class (e.g. hasHeaderRows) to false, and have the toolkit do something like this:
added property hasHeaderRow (boolean) to code, modified data reading functions to handle their tasks differently based on value of that property.
NOTE: this script still assumes you have header rows by default. If you do not, you will need to specifically inform the script by setting the hasHeaderRows property to false BEFORE telling it the location of the data file.