Changing strings at the beginning of a large file

You can directly write at any position in a file using open, write, seek, close.
You find the needed functions in
https://docs.julialang.org/en/v1.7/base/io-network/#General-I/O