answersLogoWhite

0

What is a statement use to open data file in c?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

FILE* file;

file = fopen("some-file.dat");

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a statement use to open data file in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How will you import any table from oracle to Excel?

One method would be to use sqlplus, write a select statement to extract the data that you want to import, save it to a file or copy it to the clipboard, then paste the data (or open the file that you saved it to) in Excel and use the "Text to Columns" feature to break each line of data into columns.


What are the advantages of traditional file processing and database approach?

An alternative to using a database to store data is to use what are known as flat files. These are basically text files that are stored on your server that you can use to store your data, change, manipulate and generally use how you want. Although I'd recommend you use a database, you can use PHP's file processing system. There are 3 steps to writing data to a file: # Open the file (create if doesn't already exist) # Write data to the file # Close the file There are also 3 steps to reading data in a file: # Open the file (if cannot be opened, generate an errror) # Read the data # Close the file


Which windows tool can you use to install the drivers needed so that a user can open a data file using an application that is normally not used with a file?

Data Sources Open Database Connectivity (ODBC)


Which windows tool can you use to install the drivers needed so that the user can open a data file using an application that is normally not used with the file?

Data Sources Open Database Connectivity (ODBC)


How do you campare two jpg file?

Open Adobe Acrobat XI and use the data compare function


How do I open a sql server bak file in Access?

you can not open the sql server back up file in access. You have to use server wizard to see the data base provided. It it not simple access or excel file. AnandDave.


How windows tool can you use to install the drivers need so that a user can open a data file using an application that is normally NT used the file?

You will need to use a print manager or device manager tool to do this. There are no Windows tools that can help.


How do you open a data file?

You can use fstream header file to read and write in files. It has two main components ifstream: stream which you can use to read data, and ofstream which allows you to save in files. Use something like this:#include#includeusing std::ifstream;using std::cout;using std::endl;int main(){char fileName[] = "myfile.txt";//file to read fromifstream inData;//stream to read from myfile.txtint data = 0;//to read one number of type int (we assume that the file contains it)inData.open(fileName);//connect the stream to the fileif (inData.fail())//if coult not open the file, program will be closed{cout data;//read one number from the file and save it in data of type intcout


Can you open a MS Works data file with open office?

Yes, it is possible to open a MS Works data file with Open Office. MS Works data files are generally stored with a ".was" extension, and they are documents produced by Microsoft Works, an office suite developed and distributed by Microsoft. While MS Works is no longer supported by Microprokey, the file format is still quite common and can be opened using software such as Open Office. Open Office is a free, open-source office suite that is developed and maintained by the Apache Software Foundation. It supports a variety of file formats, including MS Works data files. To open a MS Works data file with Open Office, simply launch the program, click on the "File" menu, select "Open", and choose the file from its location. Open Office will then open the file and display it in its workspace.


When do you use the mouse?

I used mouse when i need to select data ,for open file and use mouse for closing a document or a file ....I used mouse for refreshing the computer and used mouse for many other ways


How can you open dwh file when using GstarCAD?

Use hopen command or use GstarCAD backup file manager to open, the dwh file will be saved as dwg file after you open it. See related link.


What does it mean when file already in use or left open?

It means the file is already in use or has been left open...