Baca panjang karakter spesifik dalam file teks menggunakan fungsi baca ()

# Program to read the specific length 
# of characters in a file using read() function
file = open("python.txt", "r")
content = file.read(20)
print(content)
file.close()

Gorgeous Gazelle