Search found 38 matches: ofile

Return to advanced search

Re: Creating table with Trichedit

... I have a Do while loop Function Print_Schedule() Local aTable,a1,n,aTemp,x,aFlags:={} local c1,c2 local cFileName := "table.rtf" local oFile := FCreate(cFileName, 0) aTable := {} Do while (!oTemp4:Eof()) * If Empty(oTemp4:Nome) oTemp4:skip() Loop Endif ....................... c1:="Cartella ...
by Silvio.Falconi
Thu Jan 25, 2024 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1448

Conexion FTP TSL

... static function SendFiles( cSource, cTarget, nBufSize, oFTP ) local hSource local cBuffer := Space( nBufSize ) local nBytes local oFile if ! File( cSource ) MsgStop( "File not found: " + cSource ) Return .f. endif hSource = FOpen( cSource ) oFile = TFtpFile():New( cTarget, ...
by servicomver
Wed Jan 25, 2023 10:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conexion FTP TSL
Replies: 7
Views: 833

Re: FWH64 y Memoread()

Saludos Logré resolver mediante FUNCTION MEMOREADX(cFile) LOCAL oFile,cLinea,cMemo:="" DEFAULT cFile:="DATAPRO.INI" oFile:= TTxtFile():New(cFile, 0) WHILE !oFile:Eof() cLinea:=oFile:ReadLine() cMemo :=cMemo+IF(Empty(cMemo),"",CRLF)+cLinea ...
by jnavas
Sun Nov 21, 2021 1:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWH64 y Memoread()
Replies: 6
Views: 804

Re: Cuenta erronea de lineas en txt

Todas sus sugerencias funcionan.
Efectivamente, Notepad++ muestra todos los caracteres.

nTotRows:= MLCount(Alltrim(cBuf),250)

nTotRows:= oFile:nTLines

Muchas gracias.
by FranciscoA
Sat Jan 23, 2021 4:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cuenta erronea de lineas en txt
Replies: 7
Views: 776

Re: Cuenta erronea de lineas en txt

Prueba con oFile := TTxtFile():New( cFile )

nLines: = oFile:nTLines

Saludos
by TecniSoftware
Sat Jan 23, 2021 3:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cuenta erronea de lineas en txt
Replies: 7
Views: 776

Re: Date of the last file change

Please,
the definition of oFile:DateLastAccessed?

How can I try this?
How do I open a file to find that modified parameter?

Many thanks
Marco
by MarcoBoschi
Fri Feb 07, 2020 1:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Date of the last file change
Replies: 8
Views: 1458

Re: How Create an Array from .CSV file ?

local cCSVFile := "purcbill.csv"
local cCsv

oFile := TTxtFile():New( cCSVFile )
oFile:GoTop()
Do while !oFile:Eof()
cCsv := cCsv + oFile:ReadLine()
oFile:Skip()
Enddo


Instead of the above six lines of code,
Code: Select all  Expand view

cCsv := MEMOREAD( cCsvFile )
 
by nageswaragunupudi
Thu Aug 08, 2019 6:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How Create an Array from .CSV file ?
Replies: 8
Views: 1414

Re: TXT Unix To Dos

How ?

oFile := TTxtFile():New( cFileName ) << File is Unix Code or UTF-8 not BOM

Do While !oFile:Eof()
cLine := oFile:ReadLine() // << here is the problem
? cLine
oFile:Skip()
Enddo
by miragerr
Sat Feb 16, 2019 12:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXT Unix To Dos
Replies: 4
Views: 799

Re: Bajar ficheros desde una conexión FTP.

... oInternet:End() retu .f. endi cFileOrigen:='c:\respaldo\Archivo.txt' hSource :=FOpen(cFileOrigen) cFileFTP:='httpdocs/Clientes/Archivo.txt' oFile :=TFtpFile():New(cFileFTP, oFTP) oFile:OpenWrite() FSeek(hSource, 0, 0) nBufSize:=2000000 cBuffer :=space(nBufSize) do while ( nBytes:=FRead( ...
by Joel Andujo
Tue Feb 27, 2018 3:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bajar ficheros desde una conexión FTP.
Replies: 5
Views: 1310

Almacenar/Recuperar imagenes, binarios en Tablas DBF

... FUNCTION GETPAGES(cFileOrg) LOCAL cFileZip :=cFileTemp(".ZIP") LOCAL cFileMime:=cFileTemp(".TXT") LOCAL aFiles :={},nSize:=0,oFile,cMemo:="" LOCAL cBin :=Lower(cFilePath(GetModuleFileName( GetInstance() ))) LOCAL aPages:={},I,aTotal:={},nTotal:=0,lZip:=.F. LOCAL ...
by jnavas
Mon Mar 09, 2015 1:23 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Almacenar/Recuperar imagenes, binarios en Tablas DBF
Replies: 12
Views: 4998

Ayuda con clase TPrinter

... 0, nCol - ::GetTextWidth( cText, oFont ) ) Case nPad == PAD_CENTER nCol := Max( 0, nCol - ( ::GetTextWidth( cText, oFont ) / 2 ) ) EndCase If ::oFile # Nil ::oFile:Say( ::nFRow, ::nFCol, cText ) If ::nOldRow == Nil ::nOldRow := nRow ::nOldCol := nCol Else If ::nOldRow < nRow ::nFRow ++ ::nFCol ...
by TOTOVIOTTI
Fri Mar 06, 2015 9:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con clase TPrinter
Replies: 11
Views: 1071

Re: FTP upload blocked by Firewall

hmpaquito, Can you please tell me, what exactly is the purpose of this method? Can I use it somehow to catch the problem I have in function oFile:OpenWrite() when uploading to FTP? If so, can you please make a small example I need to be able either to detect if the program is in the Firewall ...
by codemaker
Thu Feb 05, 2015 5:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP upload blocked by Firewall
Replies: 8
Views: 2173

FTP upload blocked by Firewall

... program should be presented by Firewall information if the program is not on the firewall list: It hangs on: // This creates the object normaly oFile = TFtpFile():New( aTarget[ n ], oFTP ) // It hangs on the line below: oFile:OpenWrite() It doesn't show any info, just hangs forewer... Is there ...
by codemaker
Wed Feb 04, 2015 11:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FTP upload blocked by Firewall
Replies: 8
Views: 2173

Subir ficheros por FTP

... FTP y no consigo que funcione, a lo más que llega es a crear el archivo en el servidor, pero se queda con 0 bytes de longitud. La llamada a oFile:OpenWrite() se demora más de un minuto y se queda con permisos 644 en el servidor . Uso Harbour (no XHarbour), no se si esto tendrá algo que ver. ...
by Sebastián Almirón
Tue Nov 12, 2013 12:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Subir ficheros por FTP
Replies: 4
Views: 1144

Re: campos BLOB

... no posee Registros en la tabla "+cTable) RETURN .F. ENDIF lZip :=aData[1,2] IF !lZip cFileMime:=cFile ENDIF ferase(cFileMime) oFile:=TFILE():New(cFileMime) FOR I=1 TO LEN(aData) oFile:PutStr( ALLTRIM(aData[I,1])) NEXT I oFile:End() IF lZip cDirTo :=cFilePath(cFile) FMimeDec(cFileMime,cFileZip) ...
by jnavas
Sun Feb 03, 2013 12:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: campos BLOB
Replies: 6
Views: 2989
Next

Return to advanced search