13 lines
318 B
PHP
13 lines
318 B
PHP
|
<?php
|
||
|
$readfile = fopen("ataripitch.txt","r");
|
||
|
$writefile = fopen("freq.txt","w");
|
||
|
|
||
|
while (!feof($readfile))
|
||
|
{
|
||
|
$s = fgets($readfile);
|
||
|
$comma = strpos($s,",");
|
||
|
$comma2 = strpos($s,",",$comma+1);
|
||
|
$freq = substr($s,$comma+1,$comma2-$comma-1);
|
||
|
fputs($writefile,$freq."\n");
|
||
|
}
|
||
|
?>
|