i am writing a console app in c# to check if file ‘id’ in sql server table matches filename of file on local directory…i know how to use filename to check a location(all this does is check file exists in local directory)…
for example if there was an entry in a sql table of value ‘925677bb-cabb-4ff1-8c90-3e130a77b366’…i would want to perform check on location (c:\…) where any files with that filename would exist, ie ‘925677bb-cabb-4ff1-8c90-3e130a77b366.jpg’
what would be the best way to do this?
You could use the
File.Existsfunction: