#include<stdio.h>
#include<stdlib.h>
#include<share.h>
#include"stdafx.h"Hallo,
ich möchte ein Textfile einlesen.
Das File (Open-Anweisung) wird gefunden.Mit dem Text klappt es jedoch noch nicht.
Warum kommt bei printf nicht heraus?
Gruß
Berni
int main(void) { FILE *stream
long l; float fp; char s[12]; char c; if (fopen_s(&stream, "NetWorkNeu1.txt", "r") != 0) printf("The file fscanf.out was not opened\n"); else { fscanf_s(stream, "%c", &c); fscanf_s(stream, "%s", s); printf("%s\n", s); printf("%c\n", c); fclose(stream); } return 0; }
Textfile einlesen
↧
↧
Trending Articles
More Pages to Explore .....