Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Friends,
I have files in folders structure like this
Data\Countries\USA\xxx.txt,
Data\Countries\UK\xxx.txt,
Data\Countires\Germany\xxx.txt.
Before getting the data I need to check wether the xxx file exists in the folders.
IF not I want to inform the user the country where the user dint place the text file.
Thanks
If you have a table with countries you can use that. See attached example.
You can use the filetime function to check for the existence of a file
if (filetime('Data\Countries\UK\xxx.txt')) then
... // file exists
else
... // file does not exist
endif
Thanks
Should I write seperate path each country??
Can I record all the paths where we don't have xxx file into a Table??
Thanks
Pavan
If you have a table with countries you can use that. See attached example.
Great Thank So much