<?php $f_input = fopen("file.txt", "r"); $part_size = filesize("file.txt") / 2; $part1 = fread($f_input, $part_size); $part2 = fread($f_input,$part_size); fclose($f_input); $f_1 = fopen("part1.txt", "w"); $f_2 = fopen("part2.txt", "w"); fwrite($f_1, $part1); fwrite($f_2, $part2); fclose($f_1); fclose($f_2); ?>
|
Категория: PHP | Добавил: webmaster (2006-12-06)
|
Просмотров: 372
| Рейтинг: 0.0 |
|