User Tools

Site Tools


c:stdio.h:file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:stdio.h:file [2013/01/22 22:02] (current)
Line 1: Line 1:
 +{{keywords>wiki library source code example reference}}
 +===== FILE =====
 +   FILE Pointer (stream)
 +   shows on a given file
 +   // here is a better explanation necessary
 +===== C Sourcecode Example =====
 +<code c>
 +#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 == 0) {
 +perror("cannot open file");
 +}
 +
 +fclose(filestream);
 +return 0;
 +
 +}
 +</code>
advertising
c/stdio.h/file.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum Datenschutz