Reading form a text file

How to read values from a text file and store values into a string based on plan from the example below when there are two plans PP and PR. Thus if PP stores the other values in separate strings else if PR store the other two variables in another two strings. Could you guys guide me?


id plan call minutes
45 PP 4 1
46 PR 2 8
47 PP 60 32
48 PP 45 23
49 PR 23 34
50 PR 32 23
Last edited on
Topic archived. No new replies allowed.