Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get lines from text file
Message
De
30/08/2006 13:21:11
 
 
À
30/08/2006 13:00:21
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
01149836
Message ID:
01149889
Vues:
10
Is there an EOF char in it perhaps? OR a null? Another option is to try:
CLEAR
SET TALK OFF
SET ECHO OFF
xfile=GETFILE('txt')
IF !EMPTY(xfile)
	=parsefile(xfile)
ENDIF
RETURN

procedure parsefile
PARAMETER xfile
m.handle = FOPEN(xfile)
IF m.handle < 1
	WAIT WINDOW "Cannot open "+xfile
	RETURN
ENDIF
? "Parsing: "+xfile
? "********************************************************"
DO WHILE !FEOF(m.handle)
	m.line = FGETS(m.handle)
	? m.line
ENDDO
=FCLOSE(m.handle)
RETURN
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform