segmentation fault when opening file

Sheeba_Kumar's Avatar, Join Date: Jun 2012
Newbie Member
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?
0
sirama's Avatar, Join Date: Jun 2012
Light Poster
Some piece of code is required for somebody to help you. You will not satisfy if a person replies "Check the fopen function".
0
Sheeba_Kumar's Avatar, Join Date: Jun 2012
Newbie Member
I have found the answer.please stop this thread
0
Sheeba_Kumar's Avatar, Join Date: Jun 2012
Newbie Member
Quote:
Originally Posted by sirama View Post
Some piece of code is required for somebody to help you. You will not satisfy if a person replies "Check the fopen function".
thank you. i figured out the fault. my file pointer was null and i was trying to close it