Welcome to JavaRanch.
Right now I I think I have my search done but I don't know how I would print the whole line. ... Right now it doesnt even let me enter in any values for the search. Not sure what I've done wrong.
That's hard to say, as we don't know how that TextIO class works (it is not part of the JRE). I would assume that a method called "getln" reads an entire line of input, so that "word" would actually contain a line of input text, not just a single
word. If it does, you can use System.out.println to print it to the console. On the other hand, if TextIO.getln reads from a file, then line 6 wouldn't work for reading the search word from the console. But that's just speculation, absent any knowledge of TextIO.
If you want to use a more standard approach, read
https://coderanch.com/how-to/java/UserInput for how to get input from the console, and
http://www.mkyong.com/java/how-to-read-file-from-java-bufferedreader-example/ for how to read a file line by line.