More information on this topic is presented in a later tutorial in this bookshelf: Working with Files