Число считывается как строка

Я работаю с файлом, в котором записана цифра 0. При выполнении условия, выдаётся ошибка:

result = add + write
TypeError: can only concatenate str (not "builtin_function_or_method") to str

Попрошу помочь исправить.

Код:

def yourBalance():
    run = input("")
    if run == "cash":
        with open("cash.txt") as file:
            print(file.read())
    elif run == "acash":
        add = input("Сколько вы хотите добавить? ")
        with open("cash.txt") as file:
            write = file.read
        with open("cash.txt", "w") as file:
            result = add + write
            file.write(result)
    yourBalance()
yourBalance()

Ответы (0 шт):