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开发者_
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
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
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
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:
In a Delphi 7 console application, how can I check whether stdin holds a character, without blocking until one i开发者_开发技巧s entered?
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
I am trying to input a file into my program. The input is a file piped to \"standard in\". Here is an example input:
I am trying to understand stdin, stdout...and these are few questions i have here\'s the code i am using:
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: