I found that using file_get_contents() and storing it as a variable and then use strlen() on that variable will give me the length of the files since its stored as a string, all that would be next is to give it commands to ignore white space and the ability to recognize new lines, it would probably be a multi-pass function that does checks for new lines first and then does the matching so I can possibly add the feature to count new lines.