# Working with the FileStream

Working with the FileStream: FileStream Defaults, Appending to a File.

Updated: November 16, 2026

1. [FileStream Defaults](https://www.ask-codey.com/lessons/working-with-the-filestream-filestream-defaults) (Journeyman): Writing to a file with a \`PrintWriter\`, which by default replaces the file or creates a new one.
2. [Appending to a File](https://www.ask-codey.com/lessons/working-with-the-filestream-appending-to-a-file) (Journeyman): How to add lines to the end of a file by opening a \`FileOutputStream\` in append mode.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/working-with-the-filestream
