atari-music-editor/etc/parsefreq.php

13 lines
318 B
PHP
Raw Normal View History

2007-01-15 12:00:00 +00:00
<?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");
}
?>