Logging in Notepad

All that you have to do is to add .LOG as the first line in a text document, and then save it. Now, each time you open the text file in Notepad, the current date and time will be added to the file, and the file will be marked as unsaved. I started out like this, and saved my file:

.LOG

This is a log.

Next time the file was opened, this is what Notepad showed:

.LOG

This is a log.

00:32 2010-06-19

The date is not in the file, it was added when the file was opened. I added a line of text (“A new line is added to my log”), saved and reopened again. Notepad added a new line like this:

.LOG

This is a log.

00:32 2010-06-19

A new line is added to my log.

00:39 2010-06-19

Those little things can be so nice to have!

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll:

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!

Comments

Important information: If you have not commented before, your comment will be reviewed before it is published. This means that you will not see it immediately, but I have received it. This is not because I want to filter comments, but because I want to prevent spam and advertising.

Leave a Reply

Your email address will not be published. Required fields are marked *