Is the file a text file?
If so you could do something like this (I didn't test it, but it should work)
<?php
$fh = fopen("yourfile.txt", "r" );
if ($fh)
{
while (!feof($fh))
{
$buffer .= fgets($dataFile, 4096);
}
}
$sql = "INSERT INTO table (field) VALUES (" . $buffer .")";
mysql_query($sql);
?>