But doesn't args[1] get filled by the first argument followed by your program? Wouldn't a user then be able to launch that program followed by the contents of a big file of say 5 gig. Wouldn't that overflow the dynamic array? Would the program gracefully exit or crash with a cryptic error?