InString[n] gives the string that Mathematica read for the n input line. The string includes all intermediate newlines in the input, but not the newline at the end.
The value of InString[n] is assigned after the input is verified to be syntactically correct, and after any function given as the value of $PreRead has been applied.