May-17-2018, 10:41 AM
Well, as I said, the code I posted expects a format from the input file more or less like:
So you need to format your input files following this rules (you can -and shall- improve them, your input, your rules... make them practical for you) but if I format your example:
The array conv will have only 3 lines.
- Each entry will start by a character different to white space
- Any line that starts with white space will be concatenated to the previous one
So you need to format your input files following this rules (you can -and shall- improve them, your input, your rules... make them practical for you) but if I format your example:
Output:What are some common warning signs of stress and/or depression in men?
General signs of stress:
Fast heart rate
Muscle tension
Increase in blood pressure
Tense stomach
Long-term signs of stress:
Frequent cold or flu
Headaches
Trouble sleeping
Skin problems
Digestion problems
Poor concentration
Negative thoughts
Speech problems
Anxiety
Irritability
Feelings of helplessness
Poor eating
Being accident prone
Aggression.
Notice the blanks indenting the textThe array conv will have only 3 lines.