First off, let me apologise.? I apparently passed over your previous mentions of VoiceOver and did not realise until now that you have been using it to read what I have been posting.? I probably could have been a little more careful to make sure it would render properly for you.
There are two ways to setup a job to run at midnight in crontab:
0?? 0?? *?? *?? *?? /path/to/job.sh
In order, those figures are the first minute - in the first hour - of every calendar day - of every month - on every weekday - and the full path to the job.
If your system is running on a Raspberry Pi and your user name is 'pi,' the this would be your crontab entry to update ysfhosts.txt every day at midnight would be:
0?? 0?? *?? *?? *? /home/pi/YSFClients/YSFGateway/YSFHostsupdate.sh
There is also a shorthand for a daily job at midnight.? '@daily' can replace the entire scheduling portion of the line, like this:
@daily???? /home/pi/YSFClients/YSFGateway/YSFHostsupdate.sh