making a bar graph using text file