Answers for "read line from file phyton no \n"

3

python readlines without n

temp = file.read().splitlines()
Posted by: Guest on November-25-2020
0

readlines replace \n

with open(filename) as f:
    mylist = f.read().splitlines()
Posted by: Guest on December-02-2020

Code answers related to "read line from file phyton no \n"

Python Answers by Framework

Browse Popular Code Answers by Language