Board index » delphi » Function fileSize() with untyped File
wim...@dial.eunet.ch
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Function fileSize() with untyped File
*****************************************************3
I have a small problem with Pascal with Objects. The problem is the function: fileSize()! When I open an untyped File this function doesn't give back the right size of the passed file. You can try with this piece of Program: program FileSize_1; type UFile = file; var begin This is the same program contained in the manual where is explained If you run this program the function fileSize() give back a wrong size. UFile = file of Byte; and rerun again the program. In the second case the value of FileSize is correct. I thougth that if the compiler doesn't know the type of the file it cannot calculate Now another question: 'What happen if on the function BlockRead(File, buf, byte) Thank you for your attention and excuse me my easy english with mistakes! Ivano Bossi (E-Mail: chska...@ibmmail.com) |