View Single Post
Old 05-09-2007, 07:31 AM  
schneemann
Confirmed User
 
Join Date: Oct 2006
Posts: 749
Quote:
Originally Posted by fallenmuffin View Post
PHP to the rescue

Code:
$file1 = @file("letters.txt");
$file2 = @file("numbers.txt");

for ($x=1;$x<count($file1);$x++) {
$output[] = $file1[x] . $file2[x];
}
1. error suppression sucks.
2. Count the array items FIRST, not within your for loop
__________________
Deranged World
schneemann is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote