writing to a file.

Hi,
Thanks for the previous help.

I need new help.

I am running OpenMV IDE on a Windows OS PC.
I want to open a new FILE on the PC disk and write to the FILE using a PYTHON script file in the IDE.

I have used the “open–f.write --f.close” method outlined in the PYTHON TUTORIAL.
The script runs with no errors, but I cannot find the file on the PC’s disk.

Thanks

Hi, you have to reset the OpenMV cam to see any files it writes. Windows doesn’t expect a USB flash drive to create files on its own. So, but doing tools/reset OpenMV cam the os will rescan the USB drive to see the file.

Unfortunately, we can’t fix this ourselves because it’s part of the way most operating systems work.