You can enter the file to be loaded with the full path, i.e.
LOAD DATA INFILE "e:/temp/file.txt" INTO TABLE pet;
This is how the text file should be formatted if you use mysql defaults (quoting the manual);
"If you don't specify a FIELDS clause, the defaults are the same as if you had written this:
FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\'
If you don't specify a LINES clause, the default is the same as if you had written this:
LINES TERMINATED BY '\n'"
Hope this helps you out!