Manejar archivo de texto con mas de 64 K

474 views
Skip to first unread message

Clippero

unread,
Dec 14, 2011, 5:59:39 AM12/14/11
to Harbour Users
[Esp]
Necesito abrir, escribir y guardar texto en un archivo .txt que tiene
64 K y va creciendo.

En el viejo Clipper solo se podían manejar archivos hasta 64 K

Puedo hacer esto en Harbour ?


[Eng]

I need to open, write and save text in a file. Txt is 64 K and grows.

In the old Clipper could only handle files up to 64 K

I can do this in Harbour?


Fermín

DaNiEl MaXiMiLiAnO

unread,
Dec 14, 2011, 7:40:26 AM12/14/11
to harbou...@googlegroups.com
puedes usar un Control Llamado Richeditbox, puedes leer un poco aqui

tambien tienes un ejemplo aqui http://hmgforum.com/download/file.php?id=1142
 
Saludos
                DaNIEl MaXiMiLiAnO


De: Clippero <clip...@gmail.com>
Para: Harbour Users <harbou...@googlegroups.com>
Enviado: miércoles, 14 de diciembre de 2011 7:59
Asunto: [harbour-users] Manejar archivo de texto con mas de 64 K
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsub...@googlegroups.com
Web: http://groups.google.com/group/harbour-users


M.FACCIO adinet

unread,
Dec 14, 2011, 9:27:44 AM12/14/11
to harbou...@googlegroups.com
Fermin.

Adjunto envio la funcion que utilizo para procesar muchas lineas de un archivo de texto grande.
El secreto que no podes recurrir a ninguna funcion de variables de texto ya que el string mas largo es de 64K.
Asi lo era en clipper. Desconozco si hay funciones especiales en harbour para eso.

Eng.
Enclosed is the function I use to process many lines in a large text file.
The secret that you can not use any text variables function as the longest string is 64K.
So it was in clipper. I do not know if there are special functions for that in harbour.


txtfiles.prg

Massimo Belgrano

unread,
Dec 14, 2011, 10:13:09 AM12/14/11
to harbou...@googlegroups.com
The Clipper limits the size of a string of up to 65,535 bytes (64K). In Harbor this limit is much higher: you could load a file with more than 2Gb to inside a memory variable! 
follow sample Testing Harbour long string handling with device output.  
http://www.harbour-project.org/samples/longdev.html 


2011/12/14 M.FACCIO adinet <mau...@adinet.com.uy>

> Web: http://groups.google.com/group/harbour-users
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users




--
Massimo Belgrano


Clippero

unread,
Dec 14, 2011, 10:50:06 AM12/14/11
to Harbour Users
Mil gracias a todos

Me viene al pelo que las antiguas funciones de Clipper que tenían el
tope de los 64 K no lo tengan en Harbour.

Paso la aplicación de Clipper a Harbour y listo

Una vez mas gracias a todos.


On 14 dic, 13:13, Massimo Belgrano <mbelgr...@deltain.it> wrote:
> The Clipper limits the size of a string of up to 65,535 bytes (64K). In
> Harbor this limit is much higher: you could load a file with more than 2Gb
> to inside a memory variable!
> follow sample Testing Harbour long string handling with device output.http://www.harbour-project.org/samples/longdev.html
>

> 2011/12/14 M.FACCIO adinet <mauf...@adinet.com.uy>


>
> > Fermin.
>
> > Adjunto envio la funcion que utilizo para procesar muchas lineas de un
>
> archivo de texto grande.> El secreto que no podes recurrir a ninguna funcion de variables de texto
>
> ya que el string mas largo es de 64K.> Asi lo era en clipper. Desconozco si hay funciones especiales en harbour
> para eso.
>
> > Eng.
> > Enclosed is the function I use to process many lines in a large text file.
> > The secret that you can not use any text variables function as the
>
> longest string is 64K.> So it was in clipper. I do not know if there are special functions for
> that in harbour.
>
> > El 14/12/2011 10:40 a.m., DaNiEl MaXiMiLiAnO escribió:
>
> > puedes usar un Control Llamado Richeditbox, puedes leer un poco aqui
>

> http://www.hmgforum.com/viewtopic.php?f=9&t=1490&p=11329&hilit=RICHED...


>
> > tambien tienes un ejemplo aqui
>
> http://hmgforum.com/download/file.php?id=1142
>
>
>
>
>
>
>
>
>
>
>
> > Saludos
> >                 DaNIEl MaXiMiLiAnO
>
> > ________________________________

> > De: Clippero <clipp...@gmail.com>

Reply all
Reply to author
Forward
0 new messages