answersLogoWhite

0


Best Answer

Don't store pointers in files, it makes no sense.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why use pointer in c language with file handling?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a file pointer?

A file pointer is an opaque object that refers to a file. Opaque means that you should not attempt to delve into its specific value, other than to use it as a file pointer. FILE *fp; /* fp is the file pointer */ fp = fopen("somefile.txt"); if (fp == NULL) ...{exception}... fprintf(fp, "Hello somefile.txt"); fclose(fp);


What is definition of file handling in c plus plus?

File is a place where information or data is stored. we make use of some of the file-handling functions in c like: fopen()-for opening a file. fclose()-to close a file. Every file being opened for any operations like: "r"- Read-Only mode. "w"-Write-only mode. "a"-append mode. "r+"-read+write mode. "w+"-write+read mode. "a+"-read+append mode. We should make use of FILE pointer ,in order to perform any such operations on the files. There are many input and output functions used along with files. fgetc() fgets() fscanf() fputc() fprintf() fputs() fseek() rewind() File handling is used to read or write a file without directly opening it.its contents are opened in another files by using above specified commands in c++ programming for file handling we have to use a header file but in c noheader file regarding to file handling is required


Why pointer is callded jewel of c language?

a pointer is a derived data type in c. pointers are undoubtedly one of the most distinct and exciting features of c language.it has added power and flexibility to the language. *pointers are more efficient in handling arrays and tables. *pointer can be used to support dynamic memory management. *pointers reduce length and complexity of programs. *increase the execution speed and thus reduce the program execution time. by following character's real power of c lies in proper use of pointers. pointer is called the jewel of c-language.


How do you use cosine in c language?

Include the header file math.h and use the function acos(d)


What pointer type will you use to implement a heterogeneous linked list in c?

void pointer

Related questions

What is a file pointer?

A file pointer is an opaque object that refers to a file. Opaque means that you should not attempt to delve into its specific value, other than to use it as a file pointer. FILE *fp; /* fp is the file pointer */ fp = fopen("somefile.txt"); if (fp == NULL) ...{exception}... fprintf(fp, "Hello somefile.txt"); fclose(fp);


When would you use a pointer and a reference variable?

pointer: to access data by address reference: there is no reference in C language


What is definition of file handling in c plus plus?

File is a place where information or data is stored. we make use of some of the file-handling functions in c like: fopen()-for opening a file. fclose()-to close a file. Every file being opened for any operations like: "r"- Read-Only mode. "w"-Write-only mode. "a"-append mode. "r+"-read+write mode. "w+"-write+read mode. "a+"-read+append mode. We should make use of FILE pointer ,in order to perform any such operations on the files. There are many input and output functions used along with files. fgetc() fgets() fscanf() fputc() fprintf() fputs() fseek() rewind() File handling is used to read or write a file without directly opening it.its contents are opened in another files by using above specified commands in c++ programming for file handling we have to use a header file but in c noheader file regarding to file handling is required


Why pointer is callded jewel of c language?

a pointer is a derived data type in c. pointers are undoubtedly one of the most distinct and exciting features of c language.it has added power and flexibility to the language. *pointers are more efficient in handling arrays and tables. *pointer can be used to support dynamic memory management. *pointers reduce length and complexity of programs. *increase the execution speed and thus reduce the program execution time. by following character's real power of c lies in proper use of pointers. pointer is called the jewel of c-language.


How retrieve xml data using php?

Ypu can use file handling function to read XML file_get_contents() file() fopen() Use SimpleXML Library simplexml_load_string - Interprets a string of XML into an object simplexml_load_file - Interprets an XML file into an object


Why you use an array of pointer to pointer?

because u freakin can


How do you use cosine in c language?

Include the header file math.h and use the function acos(d)


How do you search a particular file using c language?

Search for a file, or search in a file?The former is OS-dependent, for Windows use functions FindFirstFile and FindNextFile.


Use of double pointer?

A double pointer has two basic meanings. One is ofa pointer to a pointer, where changing the value ofdouble pointer will result in the original pointer being changed. Another is that of a two-dimentional array, such as a matrix, or a list of char* (e.g. in main when you use argv).


How do you createe a file using c language?

Use function open or creat or fopen.


How can you make a file in c language read only?

In UNIX: use function chmod


What is pointer why you use pointer?

Pointer is a variable that stores the address of another variable. Since pointer is also akind of variable, thus pointer itself will be stored at a different memory location.