Jump to content

[SOLVED] Read data in Notepad


PHPro

Recommended Posts

This code seemed to be working..

$notes = "details/note.txt";
$handle = fopen($notes, "r");
$contents = fread($handle, filesize($notes));

echo $contents;
fclose($handle);

 

Do you guys have any idea how to arrange whats in it? because it just echoed a full text without spaces

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.