Question and Answer Database FAQ534D.txt Getting a handle on your files Category :Object Pascal Platform :All Product :All 32 bit Question: How do I get a file handle when using Delphi file variables? Answer: If you are using a TextFile, typecast your your textfile variable like this to expose the handle property: TheHandle := TTextRec(MyFile).handle; For binary files, typecast your file variable like this: TheHandle := TFileRec(MyFile).handle; 7/16/98 4:31:28 PM
Last Modified: 01-SEP-99