I have a file with ~180 lines, on each line is just a 0 or a 1. I would like to create a routine that takes this file and creates a boolean/integer array so that I could check what the value corresponding to the xth line is by doing array[x-1] I'm new to c++ and I'm not really sure how to do this, if someone could point me in the right direction or give an example I would be very grateful.
Thanks,
Ben