Can't write to list.csv file

First thanks for a great program, but I do have a small problem.
I built from a web application, and all works ok except the exe won’t write to the ‘data/dvdlist.csv’ file.
the ‘data’ folder is in the top level directory. this works fine on localhost (abyss web server) Do i need to give a full path when
compiling and building the app, or is it required to have the ‘dvdlist.csv’ file in the main directory?
I realise I’m probably missing something here but this is my first attempt. I tried four other ‘php to exe’ programs first, but I think I’ll be buying this one!

Well, make sure the “Data” subfolder already exists, otherwise Windows can’t write a file in a folder that doesn’t exist.