Fix bug

Now detects if the line/byte flag values are larger than the file's actual contents to prevent the program from crashing.