The “Scripts” folder is temporarily moved out of "Tests" because it doesn't work with the Swift Package Manager.
9 lines
143 B
Swift
Executable File
9 lines
143 B
Swift
Executable File
#!/usr/bin/env swiftshell
|
|
|
|
import SwiftShell
|
|
|
|
for line in try open("onetwothree.txt").lines() {
|
|
// Do something with each line
|
|
print(line)
|
|
}
|