locked
write to exact location in file RRS feed

  • Question

  • Is there any way with PowerShell to write to an exact location in a file?    If I know a line or header I want to write code right below.  How is that done?


    mqh7

    Tuesday, September 25, 2018 9:58 PM

All replies

  • You can use the file API and stream write to "seek" to a position and read or write.  You cannot do inserts and deletions.  "Seek" only allow over-write to a location.


    \_(ツ)_/

    Tuesday, September 25, 2018 10:05 PM