Wire the desired path to "file info.vi" (advanced file palette) and wire the error cluster ot a case structure. If no error occurs, the file exists and you can exit. If an error occurs, continue.
You could also list the files (list directory.vi with e.g. pattern "mess*.txt"), extract the numbers from the list of file names and continue with a file name using "highest number+1").