$files = Get-ChildItem -Path "C:\Folder\*.txt"
$output = @()
foreach ($file in $files) {
$output += Get-Content -Path $file.FullName
}
Set-Content -Path "C:\Folder\output.txt" -Value $output
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter