I was using windows 7,8.1, and 10 previously and there was an option in the Notepad that if I type .LOG at the beginning of the file (which is done only once), every time I open the notepad the date and current time will be automatically added.
Basically, I keep track of all my expenses and it's very important for me to just open the text file and it automatically adds the date and time for me. How can I do this in Ubuntu 15.04?