4.1T.pdf - Faculty of Science Engineering and Technology...

This preview shows page 1 - 2 out of 3 pages.

Faculty of Science, Engineering and Technology Introduction to Programming Tutorial Task 4.1: File Handling Overview This program will allow you to demonstrate simple reading and writing from a file using Ruby Purpose: Modify a simple Ruby program that reads and writes from a file to use loops Task: Create your own file reading Submit To: Doubtfire when complete Time: This task should be started in your fourth lab class and submitted for feedback before the start of week 6. Resources: Tutorials Point File class (Ruby documentation) IO class (Ruby documentation) Submission Details You must submit the following files to Doubtfire: Basic read-write source code (basic_read_write.rb) Screenshot of the Terminal showing the execution of your Basic read-write program. Make sure that your task has the following in your submission: The program must read the required details from the file, and then print out each line to the terminal.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture