Posts by ChandlerBing • 43 points
2 posts
-
-1
votes1
answer128
viewsQ: Save values from a text file to an array
I’m trying to make a code where I need to store numbers from a text file in an array. The code I have is this:: #include <stdio.h> int main() { FILE *f; int v[10]; int N=0;…
-
4
votes2
answers250
viewsQ: Print struct data with read values from a text file in C
I’m trying to make a simple program to read data from a text file, store it in a struct, and print that data on the screen. The code I have is this:: #include <stdio.h> #define max 70 typedef…