M47R1X
2011-06-16 07:31:16 UTC
The text file has a SET number of lines (I'm using 8 for now, so an array of 8 objects is needed, and I'd like to be able to change it in the future without being a huge headache, so it really needs to have objects). Each line has a boolean, two doubles, two strings, and an int in that order. There is not always a space between numbers and letters, but ALL strings are letters-only. I'm pretty new, but trying to get the hang of this since my class I had for Java this last semester. I'd rather use arrays for the objects to keep the program nice and clean, but I'm open to any suggestions.
Here's an example of what's in the file:
false 98.0 78.1Fall Cable 65
true 105.2 55.0Spring Satellite 804
...
...
And it goes on for eight lines.
Some names that would work for the variables are:
boolean basic, double west, double east, String season, String service, int channel
A fairly quick pointer would be appreciated, but I am not in a rush. I learn more from pointers that just giving me the corrected code, which is why I'm not putting anything up yet, save for two random lines of the text. Thanks!
AND NO, I'M NOT GOING TO WASTE MY TIME AS A HACKER. I want to go on to develop video games. Thanks!