Top "File-pointer" questions

A pointer set to a file.

What's the difference between a file descriptor and file pointer?

I want to know the difference between a file descriptor and file pointer. Also, in what scenario would you use …

c file-descriptor file-pointer
Program doesn't wait for user input with scanf("%c",&yn);

This is the basic code to a program I am writing to practise using files in C. I am trying …

c scanf file-pointer
Opening a file in 'a+ 'mode

If a file is opened using the following command: FILE *f1=fopen("test.dat","a+"); The man page reads: a+ …

c file file-io fopen file-pointer
Passing file pointer into functions, and file not being read correctly

I think my problem with my code that the file is not being passed correctly. The input is a file …

c file-pointer
ftell on a file descriptor?

Is there a way to do what ftell() does (return the current position in the file) on a raw file …

linux file-descriptor ftell file-pointer
Obtain filename from file pointer in C

Possible Duplicate: Getting Filename from file descriptor in C How get fileName having FILE*? Is there any way where I …

c filenames file-pointer
Does fscanf moves the passed file pointer ahead?

I saw this code somewhere: #include<stdio.h> int main() { FILE * fp; char s[1024]; fp = fopen("file","r"); …

c file-io scanf file-pointer
incompatible pointer types passing 'char*' to parameter of type 'FILE*'(aka 'struct__sFILE*')

I have a frustrating problem. I am getting the following error: incompatible pointer types passing 'char*' to parameter of …

c pointers file-pointer