function evar_getLineCount() 
{
	%file = new fileObject();
	%file.openForRead("Add-Ons/Client_Derp/text.txt");
	while(!%file.isEOF()) 
	{ 
		%lineCt++;
		echo(%file.readLine());
	}
	return(%lineCt);
	%file.close();
	%file.delete();
}
Blockland hangs when I call this function, what did I do wrong?
Text.txt is 359 lines long and has a filesize of 22kb.
Basically what I need to do is this:
Text.txt contains a lot of different lines of text to output to chat. I need to know how to pick a certain line from the file, and output it to the chat.
I have a basic idea on how to do this, but still need help.