readlines as string python /n code example Example: python readlines without n temp = file.read().splitlines()