Have you doubled the backslash to escape it? Or put it in between single quotes? Either:

"c:\\test.csv"  or 'c:\test.csv' or even 'c:/test.csv'

Otherwise, a \t in between double quotes will be interpreted as a tab

Satyam

----- Original Message ----- From: "Bagus Nugroho" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Sunday, February 04, 2007 2:47 PM
Subject: [PHP] Read file on file system


Hi All,

If I have file on[windows] c:\test.csv.
How I can read the entire contents of this file?

I have try file_get_contents, fgetcsv and etc but didn't work.
May I'm mis-understanding about using those function.

Thanks in advance
Regards,
bn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to