I have a file that has the following structure :

I'm trying to insert a new line at the end using this function :
ini_set('auto_detect_line_endings',true);//At the beginning of the php file
$handle = fopen("File.csv", "r+");
$line = array(
[0] => Trussville
[1] => L01
[2] => 8765
[3] => this is , a sample (xx)
);
fputcsv($handle, $line, ',', '"');
fclose($handle);
The result I get is as following :

Can help me please ? Thanks