Skip to content

WriteProcessStream

Narta Xaymar Dirks edited this page Dec 3, 2026 · 1 revision

WriteProcessStream BlitzLLVM

WriteProcessStream:Int32 process:Int32, name:String
Parameter Mode Type Default Description
process In Int32 required The stream that CreateProcess returned.
name In String required std:in.

Returns: A stream to write to.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Gives a stream to write to the standard input of a program started with CreateProcess: std:in. This is a BlitzLLVM extension.

  • The name works in any case. Any other name is a runtime error; what the program writes is read with ReadProcessStream.
  • What is written is what the program reads, as with the stream of CreateProcess. Writing to a program that does not read any more writes nothing, and does not end this program.
  • Every call gives a new stream on the same pipe. The program sees the end of its input once the last stream on it is closed with CloseFile, the one of CreateProcess included.

Examples

server = CreateProcess("StrandedII -server")
commands = WriteProcessStream(server, "std:in")
WriteLine commands, "save"
WriteLine commands, "quit"
CloseFile commands

Related Commands

CreateProcess BlitzPlus, KillProcess BlitzLLVM, ProcessExitCode BlitzLLVM, ProcessID BlitzLLVM, ProcessRunning BlitzLLVM, ReadProcessStream BlitzLLVM, WaitProcess BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally