, , .
, , . , :
File.open("output.txt","a+") {|f| f.write(x) }
, , :
File.open("output.txt","a+") {|f| f.write(" ") }
:
File.open("output.txt","a+") {|f| f.write(x) }
File.open("output.txt","a+") {|f| f.write(x) }
, , , (, 2).
, @seph , , , . , , "puts" "write".
File.open('testfile.txt', 'a+') do |f|
(1..3).each do |i|
f.puts("#{x} #{randomAmount}")
end
end
File.open('output.txt', 'a+') do |f|
(randomAmount).each do |i|
f.write("#{amountDone}:\n#{x}")
end
end
, . , , , output.txt, , ( ), .
, !