Hi there,
I have written a code in C. Using a makefile, I simply compiled it:
sudoku_solver: sudoku.c
gcc sudoku.c -o sudoku_solver
now, how can I pass an argument (this argument is the name of the file where a sudoku puzzle is saved (i.e. like puzzles.txt)) to my compiled file from the command line?
Thanks!
I have written a code in C. Using a makefile, I simply compiled it:
sudoku_solver: sudoku.c
gcc sudoku.c -o sudoku_solver
now, how can I pass an argument (this argument is the name of the file where a sudoku puzzle is saved (i.e. like puzzles.txt)) to my compiled file from the command line?
Thanks!