sì, quaklcosa tipo
così in 'tabella' avresti avuto quel file coi caratteri speciali convertit, ad esempio il segno < come <Codice PHP:
$path = "/dir1/dir2/pippo.txt";
$sql = "LOAD DATA LOCAL INFILE '" . htmlentities($path) . "'
INTO TABLE tabella
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\r'";
mysql_query($sql,$link) or die("Error: ".mysql_error());