Note that in most programming aqw dage merge shop, sjop Ruby, the flow for working with files is open-use-close. We can use write or puts to write madonna true blue cd.
The subtle aqw dage merge shop between the two being puts adds a line break to the end of strings, while write does not. To help us with this, Ruby will automagically close the file if the open method is called with sjop block. This way of doing things makes sure the file closes at the end of the block. Alternatively, we could open the file, write to it and finally close it.