CREAR ARCHIVO DE TEXTO

Post Reply
jbrita
Posts: 425
Joined: Mon Jan 16, 2006 3:42 pm

CREAR ARCHIVO DE TEXTO

Post by jbrita »

Amigos al hacer esto:

oPrn:=TDosPrn():New( "ARCHIVO.TXT" )
oPrn:Say(1,1,"HOLA;QUE TAL" )
oPrn:End()
el resultado es HOLA;QUE TAL y (al final me aparece un cuadradito)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: CREAR ARCHIVO DE TEXTO

Post by Antonio Linares »

Jose,

Edita el fichero de texto con un editor hexadecimal y comprueba que byte tiene al final
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
sysctrl2
Posts: 833
Joined: Mon Feb 05, 2007 7:15 pm
Contact:

Re: CREAR ARCHIVO DE TEXTO

Post by sysctrl2 »

Yo lo hago asi:

Code: Select all

  cFileTxt := "texto.txt"
  
  nHandle:= FCREATE( cFileTxt )
  FWRITE(nHandle, "HOLA;QUE TAL")
  FCLOSE(nHandle)
  WinExec("NotePad.exe "+cFileTxt)
 
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
Post Reply