Well I studied and knew c well about three years ago, since then, java has rotted my brain and I need some help.
What I'm doing is opening a file (see below) and writing 3 coordinates into an array. The only problem is there are 'j' or 'J' charecters that seperate some of the coordinates. I need to know how to read the file while ignoring the j charecters.
My main problem is that I have 4 files to read and there are not always 5 sets of coordinates in between each 'j' so Im unsure how to ignore the j.Code:J 366 -1722 583 366 356 1783 866 789 1033 866 -1289 -167 366 -1722 583 J -500 -1472 150 0 -1039 -600 0 1039 600 -500 606 1350 -500 -1472 150 J 366 356 1783 -500 606 1350 0 1039 600 866 789 1033 366 356 1783
Any ideas of how to read this type of file?