User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer







because of the inhumane working conditions at amazon in Germany, I will offer the Amazon app no more! (ARD Reportage)
c:keywords:file

FILE

 FILE Pointer (stream)
 shows on a given file
 
 The data type FILE is a structure that contains information about a file
 or specified data stream. It includes such information as a file descriptor,
 current position, status flags, and more. It is most often used as a pointer
 to a file type, as file I/O functions predominantly take pointers as
 parameters, not the structures themselves (see example below).

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
 
int main (void)
{
    FILE *filestream;
 
    filestream=fopen("test.txt","r");
 
    if (filestream == NULL)
        perror("cannot open file");
 
    fclose(filestream);
    return 0;
}
c/keywords/file.txt · Last modified: 2014/01/25 20:24 by 78.149.214.140

The new Question & Answer System is online and waiting for your Questions about Programming problems http://ask.code-reference.com Impressum