I'm using a BufferedReader to read a .txt files from Java but it acts strange. Some files are read normally and some return few empty lines and null or skips first few lines of text and prints rest. I checked paths, encoding, attributes, everything is the same in those files that I'm trying to read but code read one file and other wont. files