i created a program use in c for simulate the printer spooler but i have a trouble ---> i want to print the file where located in current directory --->but any one know the method how i select the file in current directory
-use in scanf i can read the user input and assign to the variable ,like that when user enter file name how i assign it for char variable ???
scan user input and assign this file name into char variable because i want to include this file name into fifo queue because then i can print this file
its consumer producer algorithm plz help me to solve this problem because i was new to c