I Can't test this code in codeplayground ruby please!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I Can't test this code in codeplayground ruby please!!

File.foreach( 'test.txt' ) do |line| puts line p line p line.chomp # chops off newline character p line.split # array of words in line end thanks a lot!!!

28th Feb 2017, 2:29 PM
wally22
1 Answer
+ 11
yes I give you permission
28th Feb 2017, 12:51 PM
Ahri Fox
Ahri Fox - avatar