simple file reader/writer

What's the purpose of this sleep operation?