It seems like your script that writes the data to the .dat file is adding slashes to your .dat database file to make it safe for storage. I am assuming you are not using mysql.
If the value of e.g. $x is equal to "I ate an apple"
DO this..
<?php
$x = stripslashes($x);
echo("$x");
?>
This should successfully print out "I ate an apple" without those nasty slashes. I hope this helps.