W4D1 OS MODULE Coding Assignments

not able to open the file

sir please send what error is shown

you don’t need to retrive it from url. Download the file into your local system from the link and then upload it into colab. To open and read the file use

with open('/content/demo.txt', mode='r') as file:
    file_lines = file.readlines()

Thanks