0
How to pass a text file into an array?
3 ответов
+ 1
Use the library functions fopen(), fngets(), then fclose.
+ 1
Are you sure that you need to store the file data in text format? Judging from your progression of posts, I think you wish to store mostly numeric data. Instead of text format I might suggest that you store the data in binary data files so it might take less space in storage and be faster to read and write the files. Also it would be easier to write/read numeric data and whole data structures by using fwrite() and fread(), instead of having to convert to and from text strings.
0
How to pass nested structure to a text file