Startsidan  ▸  Texter  ▸  Teknikblogg

Anders Hesselbom

Programmerare, skeptiker, sekulärhumanist, antirasist.
Författare till bok om C64 och senbliven lantis.
Röstar pirat.

Logging in Notepad

2010-06-18

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!

Categories: General

Leave a Reply

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



En kopp kaffe!

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

Bjud på en kopp kaffe!

Om...

Kontaktuppgifter, med mera, finns här.

Följ mig

Twitter Instagram
GitHub RSS

Public Service

Folkbildning om public service.

Hem   |   linktr.ee/hesselbom   |   winsoft.se   |   80tal.se   |   Filmtips