I am working on importing a text file.
I inadvertently closed the document.

After closing the document, the command Get document Size(Document 
reference)
returns a valid number for the file in question.

ex:
$Doc_Ref:=Open document("")

If ($Doc_Ref#?00:00:00?)
RECEIVE PACKET($Doc_Ref;$Temp_Text;150000000)
CLOSE DOCUMENT($Doc_Ref)
End if 
$File_Size:=Get document size($Doc_Ref)+Get document size($Doc_Ref;*)

$File_Size is set to the correct value for the file in question.
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to