Author | Message |
---|---|
talisunep
Posts: 140
|
Posted 17:48 Feb 19, 2013 |
Professor how do we read the file for sample midterm 2007? i tried to read it by BufferedReader but i am having trouble reading per subject code also tried tokens but i get an out of bounds exception as the pattern in each line is different.. whats the best approach to read this file in the link given below? thank you http://csns.calstatela.edu/download.html?fileId=4251965 |
cysun
Posts: 2935
|
Posted 19:10 Feb 19, 2013 |
Read it line by line. For each line, use split() to split it into an array of tokens. The first token in the array is the course, the rest (if any) are the prerequisites. |