A Timer itself does not know how to read from a text file.

You would have to read from the text file first (See the thread "Scanner or BufferedReader" for help on that), then parse your data, and...