Want to make auto login with getting data from .txt file

hi i made script with selenium for auto login but i want to get data from .txt file . format is user:pass or mail:pass

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
import time
browser = webdriver.Chrome()
browser.get(“site”)

browser.find_element_by_id(“login-username”).send_keys(email)
browser.find_element_by_id(“login-password”).send_keys(pass)
browser.find_element_by_id(“login-button”).click()

time.sleep(5)

browser.find_element_by_css_selector("._95e9f2bdf9c647s > button:nth-child(1)").click()

also i did this for get data

filepath = “combofile”
combo = open(filepath,“r”)
line = list(filepath)
for line in combo :
temp = line.strip().split(":") or both
email = temp[0]
password = temp[1]