Saved Bookmarks
| 1. |
Solve : how to indent output and redirect it to text file? |
|
Answer» I am trying to make the contents of a text FILE look nice, so some lines should be indented following the last LINE. I used the command [highlight]type names.txt >> list.txt [/highlight] in a batch file, but the output is not what I want. The display should look like: Quote 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 Code: [Select]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? |
|