Reads a line from the sock. If EOF, then it will raise EOFError
# File lib/net/ftp.rb, line 292
def getline # :nodoc:
line = @sock.readline # if get EOF, raise EOFError
line.sub!(/(\r\n|\n|\r)\z/, "")
if @debug_mode
print "get: ", sanitize(line), "\n"
end
return line
end