Hi, I have another problem
I've written a program which reads in a text file into a string.
Now, I want to convert that entire string so each char is held seperately in an array.
Basically I'm not sure how to pluck each character out of the string and store it seperately?
Code:
/*Program to read in text file and store data in a string*/
#include<stdio.h>
void main()
{
/*declare and initialise variable*/
char message[400];
int i=0;
FILE *file_in;
file_in=fopen("text.txt", "r");
/*stores and prints the data from the string*/
fgets (message , 400 , file_in);
puts (message);
}