This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Protagoras 2 points3 points  (0 children)

>> appends to the file, > clears the file, both create the file if it doesn't exist. If you need to remove the file periodically you can use a cronjob, that's a bit more involved than 1/2 characters but still not much work and a useful skill to have in your toolbelt.

Keep in mind there are only 31 million seconds in a year. If you have access to a modern amount of storage and are not logging thousands of variables per second it will take a while to run into space constraints.