Hi all,
I was wondering if it possible to have a varying name for the filename as part of the fopen function with the filename being supplied by Command Line Argument. Off the top of my head I would say yes but that would mean that the filename would have to be in the same place everytime otherwise it wouldnt work. What are your thoughts? My thoughts are that it woul look something like this;
Assuming the filename is in the last position
char filename=(argc-1);
<intermittant code>
FILE *fopen(const char *filename, const char *r);
Would this work? Just curious because I may have to implement it
Alex