generate functionThu, 27 Apr 2023
read information from the line since 4 to 10 character
def read_line(file_name, line_number, n_char): with open(file_name, "r") as f: lines = f.readlines() line = lines[line_number - 1] print(line[4:4+n_char])
Python
Generate More