user
Paano ang file handling sa Python programming language?
assistant
Ang sumusunod na code ay example ng file handling sa Python programming language:

# a file named "geek", will be opened with the reading mode.
file = open('file.txt', 'r')
 
# This will print every line one by one in the file
for each in file:
    print (each)

Pwedeng palitan ang 'file.txt' nang tunay na pangalan ng file kung gusto i-try ang code na ito.