A fellow wannabe Winston Cup driver :)
I'm thinking about setting a switch on $mode, which will change what it
does based on the value of $mode. Something like this:
$mode = 1; // 1 for stripping text, 2 for adding driver results, 3 for
adding race results
$file = file('/path/to/filename');
f
You could read the file in with file(), which will give you each line as an
array. Then, depending on how those strings are separated (are they by
tabs, or is it just whitespace?), use strtok() to tokenize each line. If
they are by space, not tab, but you know the column width, then you can just
I had something like this to do a couple of months back, unfortunately, my
code was deleted by someone "smart" in my office. But i can pretty much
remember the algorithim behind it.
What I done was read in my file into a buffer, then use the explode function,
i think, or something like it, bas
3 matches
Mail list logo