OSError: [Errno 7017] EEXIST

Hi there,

I have an Xbee3 Zigbee, IDE is Pycharm. I am trying to write to a txt file where I will store the values I get from an ADC pin. When I try to open it (file_1 = open(‘log.txt’, ‘w’)) I get this error:
OSError: [Errno 7017] EEXIST

Is this due to the filesystem of the module being limited? Is there any way to write to a txt file in this module?

Thanks for your help