As stripped-down as it is, Notepad has one surprising feature not available in any other text processor or word processor: automated log files. Every time you open a certain file, Notepad can automatically insert the current date and time at the bottom of the file, creating a tidy record of when you last worked on it—a nifty way to keep any type of a log, like a record of expenditures or a secret diary.

To set this up, create a new Notepad document (choose FileNew). Then type the phrase .LOG at the top of the new document. (Capitalize LOG, and put nothing, not even a space, before the period.)

Now save the document (FileSave) and give it a name. (Notepad adds the extension .txt automatically.)

When you next open the file, Notepad types out the date and time automatically, and puts your cursor on the next line. Now you're ready to type the day's entry.

To make your log file easier to read, press the Enter key to insert a blank line after each entry before saving the file.
posted on 2009-01-28 20:21  音乐啤酒不落鸽  阅读(640)  评论(1编辑  收藏  举报