lineno=(p1)
  public
  
    
    
Manually sets the current line number to the given value. $. is updated
only on the next read.
f = File.new("testfile")
f.gets                     
$.                         
f.lineno = 1000
f.lineno                   
$.                         
f.gets                     
$.                         
   
  
    Show source    
    
      static VALUE
rb_io_set_lineno(VALUE io, VALUE lineno)
{
    rb_io_t *fptr;
    GetOpenFile(io, fptr);
    rb_io_check_char_readable(fptr);
    fptr->lineno = NUM2INT(lineno);
    return lineno;
}