0

How to pass a text file into an array?

10th May 2020, 7:24 PM
danny
danny - avatar
3 ответов
+ 1
Use the library functions fopen(), fngets(), then fclose.
11th May 2020, 10:45 AM
Brian
Brian - avatar
+ 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.
11th May 2020, 6:56 PM
Brian
Brian - avatar
0
How to pass nested structure to a text file
11th May 2020, 5:05 PM
danny
danny - avatar