You are here:

C/C file handling

Advertisement


Question
Dear 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

Answer
Hello 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 ?

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2012 About.com, a part of The New York Times Company. All rights reserved.