string = "a string" file = File.open("file.txt","w") array = [1,2,3,4,5] string << "..." # a string... file << "..." # appends ... onto end of file array << "..." # [1,2,3,4,5,"..."]