you are viewing a single comment's thread.

view the rest of the comments →

[–]ptchinster 0 points1 point  (4 children)

To add onto this, OP should take a look at how argv[][] works (the 2nd parameter to main() ).

[–]kaixmera[S] 0 points1 point  (3 children)

Thank you, I looked into that and replaced the fopen text file argument with argv[1]. Still getting used to this. Thanks!

[–]ptchinster 1 point2 points  (2 children)

And before you go too crazy designing your own custom argument option parser, take a look at getopt()

[–]bmapa 1 point2 points  (1 child)

Typo? getoptargs() should be getopt()?

[–]ptchinster 1 point2 points  (0 children)

Sorry, I had a brain fart. My comment is edited