reading data from file in c
问题 I have a txt file named prob which contains: 6 2 8 3 4 98652 914 143 789 1 527 146 85 1 74 8 7 6 3 Each line has 9 chars and there are 9 lines. Since I cant make a string array in c, im be using a two dimensional array. Careful running the code, infinite loops are common and it prints weird output. Im also curious as to where does it stop taking in the string? until newline? expected result for each "save": 6 2 8 3 or watever the line contained. #include <stdio.h> FILE *prob; main() { prob =