Does argv[3] actually exist? Are you checking? Try chaninging ios_base::out | ios_base::trunc
to ios::out | ios::trunc
Post some more code please.
Last edited on
. yeah.. that was the error. I thought the vector was indexed from 1 to argc, but instead it was indexed from 0 to argc-1.
Thanks!