Questions tagged [Standard streams] (27)

2
answers

How to use bat file to run the python program and enter data into it?

I have a program in python with the input's om, and I need to start it via bat file and using this file to enter the data in this program. Is this possible?
Alexandrine.Williamson51 asked April 7th 20 at 09:00
2
answers

With some coding work DataOutputStream and DataInputStream?

With some coding work DataOutputStream and DataInputStream? For example:import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class Soltuion { public static void main(String[] args) throws IOException { // As writes true: // wrote: DataOut...
kaci.McDermott asked April 3rd 20 at 17:48
1
answer

Why skip new FileInputStream(FileDescriptor.in) not working?

Why skip new FileInputStream(FileDescriptor.in) not working? Although with System.in skip to the same code work...import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.IOException; public class Soltuion { public static void main(String[] args) throws IOException { KeyboardStream FileInputStream =...
marcus49 asked April 3rd 20 at 17:39
1
answer

How to redirect stream to multiple files?

Interested in how to implement what you can do in the command prompt:ls > file1 > file2 If one file, then everything is clear: use dup2() to replace STDOUT_FILENO fd on the desired file, but if you need several... The only thing I can think of is to run the child process, which will sit on the STDOUT_FILENO and manual...
Imogene20 asked April 3rd 20 at 17:22
1
answer

As java gets to method System.out.print()?

As java gets to method System.out.print(), if the variable out of the class System (see standard library) is null and not the object of PrintStream? public final static PrintStream out = null; What method print() of class PrintStream is not static, that would be up to it through a null could be reached.
Kendrick.Ruecker asked April 3rd 20 at 17:01
1
answer

As for python3 to take the values from the output of the ping utility?

Code:import os os.system('ping vk.com')the answer from the code:Pinging vk.com [**.***.***.**] with 32 bytes of data: The response from **.***.***.**: bytes=32 time=79мс TTL=50 The response from **.***.***.**: bytes=32 time=161мс TTL=50 The response from **.***.***.**: bytes=32 time=113мс TTL=50 The response from **.***.***...
tierra.Moo asked April 3rd 20 at 16:47
1
answer

How to correct the output vector of the structure in the file?

Good day! The file appears to do the same is introduced +what is the symbol? +not yet clear how prailno I did it all. If anyone can suggest to help,thanks in advance. I will be glad to any comment..#include "books.h" #include "global.h" #include "menu.h" #include "readers.h" #include <sstream> #include <vector> ...
Paolo.Gerhold asked April 2nd 20 at 15:34
2
answers

That means: copying multiple files to standard output?

The assignment: write a program to copy multiple files to standard conclusion. If I understand correctly, what you want to do the equivalent of cat command in Linux (more precisely, to implement partial functionality of this command)? cat file1 file2. That is, if file1 is:Lorem Ipsum is simply dummy and file2 is:Contrary ...
Sydney.Gerlach asked April 1st 20 at 17:27
1
answer

Is it possible in erlang on stdin of called command to submit the data?

If from erlang to invoke a system utility through erlang.org/doc/man/os.html#cmd-1 is it possible, and how, to file for its input data? Let's say I want to invoke the iconv utility filing for it utf8, and stdout I want to windows-1251. Possible?
Karen.Runolfsdottir96 asked March 31st 20 at 21:40
1
answer

How to direct the flow of input from the keyboard only in the necessary process?

How to send input from keyboard only to a necessary process or file? ie, disable the ability to print the keyboard where the mouse focus.
aletha asked March 31st 20 at 20:38