Join CSnippTM today and create your own personal collection of Code Snippets for FREE !!!
 

Filenumber   46
Private
      Fork


Snipp
fo = File.open("testfile.odt", "w") 
fo.write("So basically we're just testing this motherfucking thing. This is the second line. And this is the third.")
line = fo.lineno

puts line



Comments



    Register/Login to Chat and take part in the discussion


    coderhs

    Click to view more