Re: 20 Line Programming Challenge
Posted: Wed Aug 03, 2011 9:30 am
Umm, if all a user has is Notepad, then I assume Windows. In which case, most (all?) versions of Windows after 3.11 (!) come with Wordpad as well as Notepad.RWAP wrote:If all a user has is Notepad, then that program adds the wrong code (CR,LF) to end each line of text (and you also get spacing before each line).
It's doesn't appear on the accessories menu as far as I remember, but you can add it there.
You can use it to open txt files by coniguring it in Explorer:
- Right click a text file name while holding shift. (You may not need shift with some Windows versions)
- Select Open WIth ...
- Choose Program ...
- Wait .....it has to think for a bit.
- Scroll down, looking for WordPad.
- If you find it, select it and check the box that says "Always use this program ..."
- If you don't find it, click the Other ... button.
- Navigate to c:\windows\system32 and locate the file named "write.exe" - yes, I know! (Your location for windows may differ depending on the version)
- OK your way out.
When you save a text file, it saves back with the same line endings as the file had when it was read in. You always get a prompt saying "are you sure you want to save in text mode" (or words to that effect) - just say "yes".
Cheers,
Norm.