answersLogoWhite

0

FILE-level: ftell/fseek, fgetpos/fsetpos

handle-level: lseek

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which function is used to determine the position of the put pointer in a file in c plus plus?

The function ftell returns the position of the file pointer for a file.


Which function is used to determine the position of the put pointer into the file?

tellp()


Which function is used to determine the position of the put pointer in the file?

pos_type tellp();


What function will read a specified number of elements from a file?

The function fread() in C can be used to read a specified number of elements from a file. It takes as arguments the pointer to the buffer, size of each element, number of elements to read, and the file pointer.


What does the file pointer return?

The file pointer, often used in programming to manage file input and output, returns the current position within a file. It indicates where the next read or write operation will occur. Depending on the context, it can also provide information about the file's end, allowing for efficient data processing and manipulation. Functions or methods associated with file pointers can typically move or adjust this position as needed.


Why use pointer in c language with file handling?

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


What is a function to read chars from a certain position to another position in file in C?

Call functions fread, then function fseek, then function fwrite.


Can a shareable file be opened in a special way so when another process also reads it my process's file pointer is not advanced?

Your process' file pointer has nothing to do with the other process' file pointer.


Functions used for manipulation of file pointer?

Functions_used_for_manipulation_of_file_pointers_are_as_follows:">Functions used for manipulation of file pointers are as follows:seekg():_Moves_get_pointer_(input)_to_a_specified_location.">seekg():Moves get pointer (input) to a specified location.seekp():_Moves_put_pointer_(output)_to_a_specified_location.">seekp():Moves put pointer (output) to a specified location.tellg():_Gives_the_current_position_of_the_get_pointer.">tellg():Gives the current position of the get pointer.tellp():_Gives_the_current_position_of_the_put_pointer.">tellp():Gives the current position of the put pointer.The seekg & tellg functions are associated with get pointer and seekp & tellp functions are associated with put pointer.


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 fwrite function in c language?

writes data to a FILE* stream.


What is library file in C language?

It is a collection of various fuction in which we can define many function in Libaray file .