- don't use 'puts' because FileWriter doesn't have that method
- also ensure we use line terminators