Answers for "open text document from python os"

36

get text from txt file python

with open ("data.txt", "r") as myfile:
    data = myfile.read().splitlines()
Posted by: Guest on December-10-2020
0

how to access a txt file through os library in python

my_file_handle=open("folder/test.txt")
my_file_handle.read()
Posted by: Guest on September-22-2020

Python Answers by Framework

Browse Popular Code Answers by Language