Need to open and read text file.
Moderator: Rathinagiri
- apais
- Posts: 441
- Joined: Fri Aug 01, 2008 6:03 pm
- DBs Used: DBF, Leto, MariaDB, SQLite
- Location: uruguay
- Contact:
Re: Need to open and read text file.
Optimization tip:
Procedure Main
buffer := space(4096)
ParseIt(buffer) // slower because the compiler makes a copy of buffer AND WORK DONE ON THE COPY
ParseIt(@buffer) // no copy is done and work is done on original string
funtionc parseit( cString )
... do somethjig with cString
RETURN lSuccess
HTH
Angel
Procedure Main
buffer := space(4096)
ParseIt(buffer) // slower because the compiler makes a copy of buffer AND WORK DONE ON THE COPY
ParseIt(@buffer) // no copy is done and work is done on original string
funtionc parseit( cString )
... do somethjig with cString
RETURN lSuccess
HTH
Angel
Angel Pais
Web Apps consultant/architect/developer.
Web Apps consultant/architect/developer.
- Rathinagiri
- Posts: 5482
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Need to open and read text file.
Very nice suggestion. Thank you.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Need to open and read text file.
viewtopic.php?f=33&t=2941&p=26454&hilit ... ead#p26454NickSteel wrote:My source file.
Viva INTERNATIONAL HMG 
Re: Need to open and read text file.
Thanks. I can read the file now, line by line into a buffer. Now trying to parse the tab deliminated data.esgici wrote:viewtopic.php?f=33&t=2941&p=26454&hilit ... ead#p26454NickSteel wrote:My source file.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Need to open and read text file.
Happy HMG'ingNickSteel wrote:...Now trying to parse the tab deliminated data.
Viva INTERNATIONAL HMG 
- danielmaximiliano
- Posts: 2716
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Need to open and read text file.
Very good Esgici !!
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
- srvet_claudio
- Posts: 2224
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Need to open and read text file.
Very nice Brother!!!esgici wrote:Happy HMG'ingNickSteel wrote:...Now trying to parse the tab deliminated data.
This Class support Unicode ?
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Need to open and read text file.
You may try this too.NickSteel wrote:What is easy way to display the array?
Not innovative, quit old; but as far as simple and playable
Happy HMG'ing
Viva INTERNATIONAL HMG 
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Need to open and read text file.
Thanks amigo.
( quite old )
But source is available into Harbour package; I can send you if you want.
Sadly nosrvet_claudio wrote:This Class support Unicode ?
But source is available into Harbour package; I can send you if you want.
Viva INTERNATIONAL HMG 
- srvet_claudio
- Posts: 2224
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Need to open and read text file.
Ok Friend, no problem.esgici wrote:Thanks amigo.
Sadly nosrvet_claudio wrote:This Class support Unicode ?( quite old )
But source is available into Harbour package; I can send you if you want.