thanks for ideas
it dont points into any part of code, just the fallowing message after pressing button3:
Project Project1.exe raised eception class EAccessViolation with message '
Access violation at address 00000000. Read of address 00000000'. Process stoped. Use Step or Run to continue.
it dont helps to close the file before changing from write to read, also it dont helps to compleate recreate the file
i know about steam files and how to use them, but iam forced to use this solution