how do i read the last line of a document and put it into an array?

double lastLine = code for reading last line;
myArray.SetValue(lastLine, 0);

something like that?.. yea.. quick question. thanks