Opening, creating, and recording files