Iam helping my sister for her 10th std project. She is developing a console application wherein editor has option to create,read,delete and copy a file and publisher has options to read and print a file. Have written code for create,read,delete and copy. But stuck with the print option. Requirement is
1) when a publisher logs in and selects print option then he will be asked to enter the file name to print (file which will be send to the printer).
2) publisher is allowed only to enter the file name
3) as soon as he enters the file name, the file should be send to the printer and starts printing without opening the file.
Is it possible to do this without opening the file ie. publisher should not be allowed to edit the file. so when he enters the file name instead of opening the file, just pass the file name to the printer to print.