SvenIA
asked on
Powershell add text to a specific line in txt file
Hi!
I have a text file. I need to add some text at line 10 of this file. Line 10 is empty, so 'replace' is not an option.
Can it be done using powershell?
I have a text file. I need to add some text at line 10 of this file. Line 10 is empty, so 'replace' is not an option.
Can it be done using powershell?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It does seem to work now. Don't know why it didn't just before. Thanks a lot!
ASKER
Array assignment failed because index '10' was out of range.