<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">What kind of value do you get for "increment" in your script by the time you get an error in "the result"? Is it larger than the supposed file size returned by the detailed files()?<BR>
<BR>
Here's one idea if it is:<BR>
<BR>
function isValid theFile, fileSize<BR>
&nbsp;&nbsp;&nbsp;  open file theFile for read<BR>
&nbsp;&nbsp;&nbsp;  read from file theFile for 1 at (fileSize+1)<BR>
&nbsp;&nbsp;&nbsp;  put (the result = "eof") into vBool<BR>
&nbsp;&nbsp;&nbsp;  close file theFile<BR>
&nbsp;&nbsp;&nbsp;  return vBool<BR>
end isValid<BR>
<BR>
I tested a variation here, and it works for valid files. Dunno if it helps any with your invalid ones- that might be hardwired underneath into whatever system file routine is returning the error.<BR>
<BR>
HTH<BR>
<BR>
<BLOCKQUOTE CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Any ideas?<BR>
</BLOCKQUOTE></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>