Нельзя. Правила языка Дельфи потомучто.
Certain types are treated specially by the compiler on an internal basis in
that they must be correctly finalized to release any resources that they
might currently own. Because the compiler cannot determine what type is
actually stored in a record's variant section at runtime, it is not possible
to guarantee that these special data types are correctly finalized.
Используй хитрости: например, потоки вместо типизированных файлов. Каждый
логический блок должен начинаться с его размера. Прочитал размер - читай
остальные данные блока. Легко заворачивается в классы.
Posted via ActualForum NNTP Server 1.3