I need a bit of help storing strings into an array in a struct. As of now, i have something that reads it a file and parses it and if it hits a string identifier that i want to read, for example READ: Something something
if (s=="READ")
{
//store it into my struct array, but I don't know how
}
I know it should be whatever i initialized the struct to be such as info.name[1] but how would i do it for info.name[2] and so on and so on...
P.S>
Does anyone know how I can ouput what is read froma file exactly as the way it is read in?
For example...
This is a test
of the emergency broadcast system
The output would be exactly the same instead of Thisisatestoftheemergencybroadcastsystem
Thanks. Any help would be much appreciated

if (s=="READ")
{
//store it into my struct array, but I don't know how
}
I know it should be whatever i initialized the struct to be such as info.name[1] but how would i do it for info.name[2] and so on and so on...
P.S>
Does anyone know how I can ouput what is read froma file exactly as the way it is read in?
For example...
This is a test
of the emergency broadcast system
The output would be exactly the same instead of Thisisatestoftheemergencybroadcastsystem
Thanks. Any help would be much appreciated