Complete file writing tutorial.