Harisankar P S wrote in post #1136024:


>
> The right code would be:
>
> fo = File.open("testfile.odt", "w")
> fo
> .write("lines of text")
> line = fo.lineno #<~~ It will give an error, as you opened it for **write**
mode.

-- 
Posted via http://www.ruby-forum.com/.