segmentation fault when opening file

Newbie Member
26Jun2012,09:17   #1
Sheeba_Kumar's Avatar
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?
Light Poster
26Jun2012,12:29   #2
sirama's Avatar
Some piece of code is required for somebody to help you. You will not satisfy if a person replies "Check the fopen function".
Newbie Member
26Jun2012,13:24   #3
Sheeba_Kumar's Avatar
I have found the answer.please stop this thread
Newbie Member
26Jun2012,13:25   #4
Sheeba_Kumar's Avatar
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