Standard i/o

Dec 5, 2014 at 1:44pm
Does Unix/Linux or OS create a temporary file when I, for example want to display a message such as

printf("%c", var);
or
cout<<"CS"<<endl;

cout or printf calls write() system call and creates a temp file to store the data to display on screen..am i I correct?
Last edited on Dec 5, 2014 at 1:44pm
Dec 5, 2014 at 1:48pm
No temporary files are created. You are correct that the printf() function ultimately calls write(); however, the data is processed at a low level by kernel code responsible for interacting with hardware.
Dec 5, 2014 at 7:47pm
Thanks
Topic archived. No new replies allowed.