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?
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.