User:Cosmo Cramer

Reading Reading from from a a filfil • If we want to read from somewhere oth we need to open a file. • How should we specify the filename? – argv[0] == name of program – argv[1] == first argument int main(int argc, char **argv) { if(argc != 2) fprintf(stderr, "Usage: %s <f argv[0]); exit(1);