-
Save the data for the script in .txt file
-
Put the .txt file in the folder that matches the task
-
In a command line run ruby script with additional parameter - the name of the file with data (with extention).
For example:
ruby script.rb data.txt
- The output will appear in the command line