answersLogoWhite

0

With function system or popen.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you open a C file as an executible file?

In a canonical C compiler, you type "cc (program file name).c (return) and it spits out "a.out", which is an executable. Works with the original Kernighan and Ritchie C compiler. For C++, use the .cpp extension and "g++" for the compiler: In a terminal window, on MacOS, 'cc (program name).c (return)' 'g++ (program name).cpp (return)' produces an executable named "a.out", which can be run. '-o (some file name . extension) will change the output file name.


How to save the program in gw basic?

It tells you at the bottom of the screen: 4 Save''. This means press F4 to save your program and specify the file name. After that you can use F3 to load the program.


How do I write a C plus plus program to store my friends name in a file?

To write a C++ program that stores a friend's name in a file, you can use the <fstream> library. First, include the library and create an ofstream object to open a file for writing. Use the << operator to write the friend's name to the file, then close the file. Here's a simple example: #include <iostream> #include <fstream> using namespace std; int main() { ofstream outFile("friends.txt"); if (outFile.is_open()) { outFile << "Friend's Name\n"; // Replace with the actual name outFile.close(); } else { cout << "Unable to open file"; } return 0; }


What command would you use to locate occurrences of a particular character string in files?

grep


Can you compile program without header file?

Yes,we can compile our program without header file without any error,but we can not use any predefine functions like printf,scanf.

Related Questions

Which utility would you use to find a string in a text file?

Use the 'grep' command.


How do you redirect a grep output in a file?

Use the > to redirect the output to a file. This will however override the existing content of the file. Use >> if you want to append the result.


How can you search a file for keywords in Linux?

grep keyword filename Use egrep or fgrep for multiple keywords


In Linux this connects the output of the first command with the input of the second command?

You would use a pipe. For example. ls | grep cool The output of ls(the list of files in your current directory) is given to grep. Grep then finds and prints file names that include the word cool in them.


What is grep syntax to make grep not be case sensitive?

Use the "-i" argument See 'man grep' for more information


Do you have type a file extension if you want to include the file name?

No, you do not have to type the file extension if you want to include the file name. You only use file extension to make the specific file be able to be run by the program. Example: I want to make my file into a java program so i can use with a specific type of program which only runs java file i put .jav at the end of the title to make it from a text file to a java file.


Searching documents created by word processing programs is not an appropriate use of grep command because?

The grep command could be used to find things in a word processing file. It is harder to find a match since a word processing program adds formatting and other characteristics to words and sentences that you may want to locate. So, it is more difficult to do, but not impossible.


What is it called that determines which program to use at the end of a file name?

The part of a file name that determines which program to use for opening it is called the "file extension." It typically consists of a period followed by a few letters, such as ".txt" for text files or ".jpg" for image files. The operating system uses this extension to associate the file with the appropriate application.


How can you find the phone number on Linux for ace electronics in a file named phone that contains a list of names and phonenumbers?

grep 'ace electronics' phonelist will return all the lines in the file phonelist that contain the phrase 'ace electronic' grep -i 'ace electronics' phonelist will do likewise but case-insensitively


What can you use to duplicate a file or program?

Right-click the file/program, click "Copy", right-click where you want the duplicated file/program to go, and click "Paste". ------ Or to duplicate a program you can use Installrite http://www.epsilonsquared.com/


What is grep in Unix?

Grep is a command line application that is used to search a file or files and extract data from it/them according to a pattern or filter if you prefer. Grep stands for global regular-expression. There are many versions of grep available and regular expressions (for pattern matching) are available in most modern scripting languages such as ruby, python, perl, php, vb, etc. Grep, ngrep, egrep, etc. are available for multiple platforms including windows. They are well documented and can be downloaded for free.


Your e drive says it cant open file because it dont know where it came from?

The message is generally that your computer does not know what program created a specific type of file. Use Google to search the file type, for example *.jpg or *.doc That will tell you the type of program that made the file. If it is a video file or image file, you can find free programs which will open most of these. Once you know the program, right-click the file and see if you have that program loaded on your PC. If you do, highlight the program name and choose "Always use this program to open similar type files". Click OK.