X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D53D2474E4F for ; Thu, 8 May 2003 22:28:08 -0400 (EDT) Received: from host.speedlogix.net (unknown [64.191.35.250]) by postgresql.org (Postfix) with ESMTP id 683D1474E4F for ; Thu, 8 May 2003 22:27:32 -0400 (EDT) Received: from ip68-102-181-163.ks.ok.cox.net ([68.102.181.163] helo=marcottesamiam) by host.speedlogix.net with asmtp (Exim 3.36 #1) id 19Dxc7-00058t-00 for pgsql-php@postgresql.org; Thu, 08 May 2003 22:27:59 -0400 Message-ID: <000801c315d2$89e68fd0$a3b56644@marcottesamiam> Reply-To: From: To: Subject: First project done Thanks to your help :)) Date: Thu, 8 May 2003 20:27:25 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.speedlogix.net X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - casheze.biz X-Spam-Status: No, hits=2.3 required=5.0 tests=NO_DNS_FOR_FROM,NO_REAL_NAME version=2.50 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/4 X-Sequence-Number: 2009 Now I want to take a 300meg file and break it up into smaller files I can read with text readers. I just can not find how to read one file - write it out to lets say 40 files I want to read by line for a given # of lines (I will have to just guess at this), then when I get to that # start writing to file 2 then to file 3 when I get to 2 * the # then 3 *..... figure there should be some way to set up an array (file0....file40), I figure take my # say 10,000 move it to array(0), *2 to array(1)..... so when I get to array(1) 20,000 - I start writing to file out (array1) Just not sure how to set it up and use arrays for files. Thanks for any ideas. Sam Marcotte