header flag as an argument which inform about Header in a 2D Matrix
for example:
- Code: Select all
BioData x("Filename.xt",TRUE);
in BioInputStream : methods : which gives number of lines in the files, number of words, numbers of chars should be provided additionally to the ifstream parent object.
- Code: Select all
BioInputStream x("filename.txt");
cout<<x.getNumberOfLines()<<endl;
cout<<x.getNumberOfWords()<<endl;
// we can think of over loading the getNuberOfWords, Chars, Lines with a string argument which is a pattern to be searched for.
cout<<x.getNumberOfCharacters()<<endl;
