I have a file say A.txt that has this line of text
"------10 spaces-------The big brown fox".
It has to be C and not C++
I wrote this code
(fgets (oneLine, LINE_LENGHT ,fp )) where
one line is char oneLine[128}
LINE_LENGHT = 128
fp is a FILE pointer
and I got this
oneLine = "------10 spaces-------The big brown fox".
but this is not what I wanted, I wanted to get rid of the leading space and get this.
oneline = "The big brown fox"
It looks simple but I tried all variation of scanf and failed.
I run your code and it works. I am unfamiliar with "strspn" so I went to www.cplusplus.com and tried to figure it out. I am a little lost why you chose
" \t".