input routine

Noun
  1. a routine that writes from an external source to an internal store
input routine
The programmer writes an input routine to read data from a file.