read(...) public

Opens the file, optionally seeks to the given offset, then returns length bytes (defaulting to the rest of the file). read ensures the file is closed before returning."testfile")           #=> "This is line one\nThis is line two\nThis is line three\nAnd so on...\n""testfile", 20)       #=> "This is line one\nThi""testfile", 20, 10)   #=> "ne one\nThis is line "
Show source
Register or log in to add new notes.