Ratio compare and file newlines