Splitting Text Files using Powershell
A few days ago a friend asked why working with text files in powershell was so annoying. I asked him what the problem was, and he was trying to split a text file in half.
I gave him this simple line:
This will get the raw text content of a file (C:\input-file.txt), and dump out the first 50% of the file to C:\first-half.txt