Write a function named "file_increment" that takes no parameters and doesn't return a value. This function will read the contents of a file named "orange.txt" which has only 1 line and it contains a well-formed integer. Read this integer and write its value plus 1 to a file named "sleeve.txt". If "sleeve.txt" already exists it must be overwritten.
def file_increment(): with open("orange.txt", 'r') as rf: with open('sleeve.txt', 'w') as wf: for line in rf: wf.write(line+1) I am getting error: Can't convert 'int' object to str implicitly. How do I fix this issue?