i'm trying to make a text file based program and trying to store my data into files. While in progress i noticed that i can't store a sentence in my file, help?
char word[100];
My sentence: dog is furry
But i noticed that char don't store space's and just creates new files...
As i know string stores 1 word and char can store a lot with spaces dashes commas etc?
Yes. C strings (a.k.a. char arrays) can store everything except null bytes, strings can store everything.
You likely read the sentence incorrectly. You should use getline if you want to include whitespaces, e.g.: