Board index » delphi » File Modifications
Armando Silva
![]() Delphi Developer |
Sat, 26 Jul 2003 03:37:53 GMT
File Modifications
Is it possible (Haven't tried yet) to set a record from one value to
another while the file is currently open ? I have an idea of something like this: Program Test; Uses DOS, CRT; TYPE TestNDX = record Var Begin Assign(F,'TEST.DAT'); Writeln('Currently Value PathName is set to ', TIndex.PathName); TIndex.Color := 4; BlockWrite(F,TIndex, SizeOf(TIndex), ReadResult); Close(F); end. So is it possible to Modify ONLY the TIndex.Color in the file Will this do the trick ? Or do I need to add or modify something ? I am using Turbo Pascal 7 for DOS Thanks in advance for your replies !! * Armando Silva * |