The display should look like:
List of the students in Year 13:
Alice
Helen
type names.txt >> list.txt
What display? All you've done is redirected the output to another file. A space is just another character as far as the processor is concerned. What was the alignment in the names.txt file?
If this goes back to your other posts about
more, then align the names.txt file using the space bar.
more >> names.txt
List of the students in Year 13:
Alice
Helen
Use the spacebar to insert the leading spaces in front of Alice and Helen or better yet use an editor such as EDIT or even EDLIN.
8-)
Are you really running MS-DOS or just a look-alike under Windows?