Bobo (the other one) explains why this doesn't work here: http://forums.cgsociety.org/showpost.php?p=4137629&postcount=2 You'll need to use a global variable with fileIn. Typically I'll make a global struct and house all my variable in there. That way you only have one global. I'll even put the functions in it. struct…