I'm trying to create an sql import/export feature for my site and if I could split a text file into an array of strings by each line then I could use something like
foreach ($str as $val) mysql_query($val);
to enter it all. The problem is just that I lack experience working with files in this way.