answersLogoWhite

0


Best Answer

Use functions like fopen, fclose, fgets, sscanf, strtok

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you read input of a programme from a text file using borland c compiler from command prompt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you compile and execute a 16 bit compiler program from a command prompt?

Compiler-dependent. If you have Turbo C, it will be command TCC


How do you Compile the C Programs in command prompt?

That would depend on the compiler you were using and the file(s) you were trying to compile. Differen compilers would have different ways to run them, so you would need to know the commands for your particular compiler, if it is capable of running from the command prompt.


How to excute c program on dos?

Command-line and IDE C compilers: There are two types of C compilers, each of which has advantages and disadvantages: (i) Command-line C compilers and (ii) IDE or Windows C compilers To compile and run a C program using a command-line C compiler, you have to go through the following steps: (i) Write the C program (call it ``myfile.c'') in a text editor or word processor (for example, the simple ``Hello'' program below), (ii) Save it as a file on your computer's hard disk, (iii) ``Compile it'' to a computer-executable program by entering a compile command at a command prompt, for example for the following C compiler programs: gcc -Wall -o myfile myfile.c (using the GNU C compiler, UNIX or Microsoft Windows) cl myfile.c (Microsoft Visual C++ command-line compiler) bcc32 myfile.c (Borland C/C++ compiler, Microsoft Windows) followed by the ``Enter'' key, and finally (iv) Run the program by entering myfile at a command prompt, again followed by ``Enter''. If you want to save the output of ``myfile'' as a text file ``myfile.txt'', enter instead myfile > myfile.txt


What command should be given to compile a C program from the command prompt?

You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.


How do you compile and execute programs using command line in DOS?

ad1: install a compiler ad2: just enter the program's name at the prompt


How do you compile and execute a C program from a command prompt in turboc compiler in 32 bit XP?

C:> TCC.EXE foobar.c C:> foobar.exe


How do you exit a prompt command?

Use "prompt $p$g" command.


Command prompt doesn't show if my PC is running in safe mode with command prompt?

Safe mode with command prompt option is totally depends on DOS shell, hence there is no need for separate command prompt..


How do you do next line in command prompt?

when using command prompt, after you give it a command, press the enter button. Command prompt will then carry out the task and will automatically go to the next line.


What do you know about PROMPT command in MS-DOS?

PROMPT command is an internal command, which is used to change the MS-DOS prompt. Through, the system displays the prompt bu default, when you start the computer.


How do you get the IPA of a computer from the command prompt?

In command prompt write "ipconfig/all" command and then press [enter]. And see the IPv4 Address section in the commend prompt.


What is the Command Prompt?

when you are in cmd command prompt "type" help and you will see all the codes