Advertisement
Plast0000

GtaIVCoordinateMerger

May 28th, 2023 (edited)
1,382
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $files = Get-ChildItem -Path ./coordinates/*.ini
  2. $output = "./group.txt"
  3.  
  4. if (-not(Test-Path -Path $output -PathType Leaf)) {
  5.     New-Item $output
  6. }
  7.  
  8. Set-Content $output "x y z"
  9.  
  10. foreach($file in $files)
  11. {
  12.     $line = Get-Content $file | select -first 1 -skip 1
  13.     $line = $line.Substring(5)
  14.     Add-Content $output $line
  15. }
  16.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement