reading from a file lenearly