I'm doing code in c language
I get segmentation fault when i try to open a file that contains 1000 lines similar to this

1,2,1,5,6,7 (I have six integers in every line separated by comma)
What is the maximum limit to read using fopen in c?