Использовать fgetc() считывает один символ из файла – PHP файл открыть/прочитать/закрыть – База кода
Смотреть код
<?php $myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!"); // Output one character until end-of-file while(!feof($myfile)) { echo fgetc($myfile); } fclose($myfile); ?>
Описание: Англ (оригинал)Use fgetc() to read a single character from a file Рус (машинный) Использовать fgetc() считывает один символ из файла