gets « File Directory « Ruby






1.Open a file stream, and then retrieve each line in order with the IO method gets.
2.pull out the first two lines of the example file
3.use the gets statement of the class File.