a = IO.readlines("testfile") a[0] #=> "This is line one\n" b ... When the optional chomp keyword argument has a true value, \n , \r , and \r\n will be ...
確定! 回上一頁