May-23-2018, 08:19 PM
It was just an example. The right hand size doesn't really matter. I don't understand what you mean about Array, and you hadn't mentioned x previously.
Making a class doesn't mean you'd need to hard code the the file. The method call on the class can reference the file as-needed. It's "heavy" in the sense that it's not as fast as keeping the entire thing in RAM, but your original problem here seems to be that that's not an option. Unless you need to read a ton, it should be fine, reading from disk is a normal activity.
What are you trying to communicate with the screenshot?
Making a class doesn't mean you'd need to hard code the the file. The method call on the class can reference the file as-needed. It's "heavy" in the sense that it's not as fast as keeping the entire thing in RAM, but your original problem here seems to be that that's not an option. Unless you need to read a ton, it should be fine, reading from disk is a normal activity.
What are you trying to communicate with the screenshot?