First attempt at writing a local file.