Well, for example in Python we can run another program from interpreter by
import subprocess
result = subprocess.run('ruby script.rb').stdout
My question is next:
Can we do something from Swift file at runtime or maybe from terminal via REPL
And can you send me resource when I can read about work with stdin, stdout in Swift, because is very small info in Documentation (Standard Library I/O)
On 4. Jan 2018, at 17:03, Седых Александр via swift-users <swift-users@swift.org> wrote:
Well, for example in Python we can run another program from interpreter by
import subprocess
result = subprocess.run('ruby script.rb').stdout
My question is next:
Can we do something from Swift file at runtime or maybe from terminal via REPL
And can you send me resource when I can read about work with stdin, stdout in Swift, because is very small info in Documentation (Standard Library I/O)
On 4. Jan 2018, at 17:03, Седых Александр via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:
Well, for example in Python we can run another program from interpreter by
import subprocess
result = subprocess.run('ruby script.rb').stdout
My question is next:
Can we do something from Swift file at runtime or maybe from terminal via REPL
And can you send me resource when I can read about work with stdin, stdout in Swift, because is very small info in Documentation (Standard Library I/O)