reading range from file