stdin
How to use select() to read input from keyboard in C
I am trying to use select() to read keyboard input and I got stuck in that I do not know how to read from keyboard and use a file descriptor to do so. I\'ve been told to use STDIN and STDIN_FIL开发者_[详细]
2023-03-14 17:45 分类:问答Write to NSTasks standard input after launch
I am currently trying to wrap my head around the hole NSTask, NSPipe, NSFileHandle business. So I thought I write a little tool, which can compile and run C code. I also wanted to be able to redirect[详细]
2023-03-13 12:11 分类:问答Python strange behavior when called by Popen & writing to stdin
Two (related?) questions here. I was trying to write a program to start an external process, and then simultaniouly read from stdout and write to stdin. Everything seemed to be working, however the p[详细]
2023-03-13 05:21 分类:问答Can I use RSpec to mock stdin/stdout to test console reads & writes?
My Ruby program reads lines from stdin and uses puts to print to stdout (the terminal). Can I use RSpec to test the reads and writes? Can I inject a string to my program like it was written in stdin a[详细]
2023-03-12 21:57 分类:问答How to read or store integers, by reading line by line in C?
I\'m trying to read line of numbers and do some calculations on them. However, I need to them to be separated line by line somehow, but I can\'t figure out how to do that. Here\'s my code:[详细]
2023-03-10 21:32 分类:问答How to peek at STDIN with Delphi 7?
In a Delphi 7 console application, how can I check whether stdin holds a character, without blocking until one i开发者_开发技巧s entered?[详细]
2023-03-10 10:16 分类:问答Broken Pipe Java program writing in an external C programs stdin and reading from stdout
I am using the follwing java code to write in the stdin of a C program which basically reads from stdin adds A_A_A to the end of the line and writes it back in the stdout which the java program reaads[详细]
2023-03-09 07:57 分类:问答Input from stdin, separated values into an ArrayList to sort
I am trying to input a file into my program. The input is a file piped to \"standard in\". Here is an example input:[详细]
2023-03-09 03:12 分类:问答trying to understand stdin, stdout
I am trying to understand stdin, stdout...and these are few questions i have here\'s the code i am using:[详细]
2023-03-09 03:04 分类:问答How to feed mysql queries from bash
I\'m trying to mak开发者_Python百科e a bash script that creates a mysql user and database but I can\'t find a way to feed the sql into mysql, I\'m trying with this format:[详细]
2023-03-08 14:59 分类:问答