I don't understand your question.
Which language are you asking about?
If shellscript, then in bash the read command allows assigning words from a line to several variables; all the remaining part of the line goes in the last variable:
Code:
c:~$ read var1 var2 var3
a b c d e f
c:~$ echo $var1
a
c:~$ echo $var2
b
c:~$ echo $var3
c d e f