Chapter 12. Reading, Writing, and Ruby Magic

File Input and Output

Ruben looked around him and sighed. “Why did we run all the way here if the freight elevator goes so slow?” he asked.

“You know,” said the King, rubbing his beardy chin, “I really don’t know. But I imagine it’ll be here any minute!”

No sooner had the King spoken than the freight elevator arrived with a great clang. The doors slid open, revealing a huge metal elevator car.

“All aboard!” said Rusty, and they all climbed in. Rusty punched a round red button labeled LOADING DOCKS, and with another clang, the car began to slowly descend into the heart of the Refactory.

“We’ll be there in a jiffy,” Rusty said.

“A slow jiffy,” Scarlet said. Ruben stifled a laugh.

“Not to worry,” Rusty said. ...

Get Ruby Wizardry now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.