Hello, im a complete newbie here, so if there is something better let me know! Thanks.
By creating a new variable tied to favoritepictures.txt, wouldn't that simply create a file if there was none? This would cause a search to see if it exists to be pointless.
I have found that this works just as well without creating a new variable:
If
My.Computer.FileSystem_
.FileExists(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\favoritepictures.txt")
Then