I'm trying to read in a bunch of strings from a dat file.
bla,bla,bla
I read that you can scan in data from a file using scanf()
I have also read that you can read certain amount of characters by formating like follows.
scanf(%3s,string)
I also have a section that states you can eleminate certain characters in the string using [^(character to be eleminated)]
so why does this not work?
scanf(%3[^,]%3[^,]%3[^,],string1,string2,string3)
which should store
string1=bla
string2=bla
string3=bla