0 votes

How can I read and write to a process in gdscript, after starting it with OS.execute(...)?


    Process process = builder.start();

    OutputStream stdin = process.getOutputStream(); // <- Eh?
    InputStream stdout = process.getInputStream();

    BufferedReader reader = new BufferedReader(new InputStreamReader(stdout));
    BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stdin));

    writer.write("Sup buddy");

    Scanner scanner = new Scanner(stdout);
    while (scanner.hasNextLine()) {
asked Aug 27, 2016 in Engine by 0rube (12 points)
edited Aug 30, 2016 by 0rube

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.