Creating a text file

From: Date: Wed, 17 Jan 2001 09:03:09 +0000
Subject: Creating a text file
Groups: php.general 
Request: Send a blank email to php-general+get-34996@lists.php.net to get a copy of this message
Hi I have the following code in Delphi: procedure TFormConfirmAllocation.CreateTxt; var TxFile : TextFile; Buffer : string; x : integer; begin AssignFile(TxFile,'\SkyTrac.sky'); Rewrite(TxFile); with FormConfirmAllocation.Query1 do begin open; while not Eof do begin for x := 0 to fields.Count - 1 do begin Buffer := Fields[x].AsString; Writeln(TxFile, Buffer); end; next; end; end;//with CloseFile(TxFile); end; Now I want to create the same sort of thing in Php, could someone please help! Thanks Wade WHalsey@btech.co.za

« previous php.general (#34996) next »