Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does hard disk drive get any damage if I open a file, append some short data to it and close it many times in a second?
A program actually does that, not me...

share|improve this question
up vote 3 down vote accepted

Hard drives have buffers which 'buffer' this type of activity. Even though your app may be telling the HDD to write data several times a second it is only actually writing as often as it wants to (which also happens to be several times a second but that'll still likely be less than you are writing).

Even though I've just said this is OK, I would also like to point out that this is a bad software design. You should really do this sort of thing in memory then write to the disk only occasionally. IO operations will block other IO operations, writing to a drive this frequently is going to cause other things running on your system to wait for their turn a lot.

share|improve this answer

Any file operation will decrease the lifespan of your HDD.

Considering if it is "harmful" is subjective, but you could easily compare it to your browser caching pages.

share|improve this answer

No, why should it? Disks are made for reading and writing. It doesn't harm more or less than any other activity on your disk.

You also won't overload your disk (or anything like that) since the controller will determine how many read/write operations it can take.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .