We have a program that simply opens the file. If it's not valid it takes the ELSE clause.
Hth Colin Alfke Calgary, Canada >-----Original Message----- >From: Adam Eccleshall > >Hi, > >Is it possible from inside a UniBasic program to identify >whether or not a VOC pointer points to a valid UniData file? >Currently, I have a routine which OSOPENs and reads from the >file and compares certain bytes at the beginning of the file >which appeared consistent in my initial checks, however some >valid files don't match this pattern. Are there any more >accurate ways of doing this check? > >I tried checking FILEINFO(fp,3), however after an OSOPEN, this >returns 5 (sequential file) either way. > > > >Thanks in advance, > >Adam ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
