Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for new line
Message
De
03/10/2014 01:20:13
 
 
À
03/10/2014 01:05:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01608721
Message ID:
01608722
Vues:
62
>How can I search for a "new line" plus a string in a text file?
>What function should be used?
lcTextFileContents = FILETOSTR( cFileName )

lcNewLineChars = CHR( 13 ) + CHR( 10 ) && the carriage return - line feed (CRLF) combination

* To find substrings in lcTextFileContents look at the help file for AT( ) or OCCURS( )
* and the "See Also" related functions

* For processing text files line-by-line you may want to look at ALINES( )
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform