1#!/usr/bin/env php 2<?php 3if (!empty($argv[1])) { 4 $file = $argv[1]; 5} else { 6 $file = __DIR__ . "/test.txt"; 7} 8 9$op = 10 11$fp = fopen($file, "w"); 12ftruncate($fp, 0); 13fwrite($fp, str_repeat('A', 1024)); 14fwrite($fp, str_repeat('B', 1024)); 15fwrite($fp, str_repeat('C', 256) . "\n"); 16fclose($fp);