Jump to content


prof_serjao

Member Since 04/01/2007
Offline Last Active 02/09/2008, 16:22
-----

Posts I've Made

In Topic: Gravar Registros Em Txt

12/01/2007, 10:44

$res_gravacao = "$resg_cod;$resg_nome;$resg_sexo;$resg_endereco"[/b]."\r";

$GRV_arq = fopen('resgistro_cliente.txt', 'a+') or die("ERRO NA GRAVAÇÂO !!!");
fwrite($GRV_arq, "$res_gravacao");
fclose($GRV_arq);
echo "GRAVADO COM SUCESSO !!"

$tam = "resgistro_cliente.txt";
$GRV_arq = fopen('resgistro_cliente.txt', 'r') or die("ERRO NA LEITURA !!!");
$texto = fread ($GRV_arq , filesize($tam));

echo $texto;

IPB Skin By Virteq