[Python] Read file and insert into map [closed]

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    I have been searching around the internet on how to read from file and insert it into map in Python? The file contains username, password.

    def readFile(self):
    f = open("user.txt", "r")
    for x in f:
    // Create a map insert into it
    print(x)


    Please help me. Thanks in advance.

    Continue reading...

Compartilhe esta Página