hi
im a little confused about how streams works

ie.(with keyboard)

how the data gets into input stream???...

when i type from my keyboard something, automatically all the text goes to the input stream?? or just after when i type ie. "enter"??

ie.(from files)
when i use the ifstream object and pass the file name to the constructor
all the text inside the file is automatically put in the input stream??
or just when i start to read the file with ie. getline??

please any help?? and excuse my poor english