Is it possible to read characters from a file, store them into character array, then change the characters to string?
So, let's say in the file, abc is written. I would store each letter 'a' 'b' 'c' into character array using fscanf.
So the array would now contain {'a', 'b', 'c'}.
However, I want them to be put in all together into a string.
What I mean by that is, make 'a' 'b' 'c' into one word "abc".
So, let's say in the file, abc is written. I would store each letter 'a' 'b' 'c' into character array using fscanf.
So the array would now contain {'a', 'b', 'c'}.
However, I want them to be put in all together into a string.
What I mean by that is, make 'a' 'b' 'c' into one word "abc".