> I learned that I can't use file i/o in a function outside the main, which is an unspoken rule that no tutorial elucidated.
is for sure not true, that would be crazypants
is for sure not true, that would be crazypants
I have no other explanation. At some point, having too many nested loops and variables causes segmentation faults, whereas less complex code functioned without error. I needed to have certain things performed, and it only functioned in the main.