O'Reilly logo

Ruby Wizardry by Eric Weinstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required