Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $fileName = "soubor.txt";
- if(FALSE != ($hFile = @fopen($fileName, 'r')))
- {
- while(FALSE !== ($lineFile = fgets($hFile)))
- {
- $lineFile = trim($lineFile);
- if($lineFile != "")
- {
- nejakaAkce($lineFile);
- }
- }
- }
- else
- {
- exit("Soubor neexistuje.");
- }
- function nejakaAkce($radekSouboru)
- {
- echo $radekSouboru;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement