C/C file handling
Expert: Zlatko - 3/17/2010
QuestionDear Sir,
i have written program for writing in file using c language,but i don't know that how i enter/write the text in file and then see my entered text ,infact i don't know the command that are used on command prompt for this.please tell me these commands and the drive path to write on command prompt.
Regards.
Regards
AnswerHello Soni.
I think I understand your question. You want to see the contents of your file using a command from the command line prompt. If you go to the directory where your file is, you can use the "type" command on DOS (Windows), or you can use the "more" command or the "cat" command on unix or linux. All of the commands take the name of your file as a parameter.
You should also be able to open your text file with a text editor.
Does that answer your question ?