Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Look embedded carriage returns in text file?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01578248
Message ID:
01578265
Vues:
37
>>
>>lcTxt = filetostr("myprecious")
>>local laErg[255, 3]
>>for lnChar = 1 to 255
>>  laErg[m.lnChar,1]  = lnChar
>>  laErg[m.lnChar,2]  = chr(lnChar)
>>  laErg[m.lnChar,3]  = occurs(m.lcTxt, chr(lnChar))
>>next
pre coffee code, occurs(lcSearch, lcSearched)... sorry

>>>What I'm finding is that every line ends with CHR(13) CHR(10)
>>
>>that is CRLF ;-)
>>
>>.....which is what I wanted to do and the line this guy claims has some other thing at the end of it doesn't look any different to me than all the other lines. I really think he just might of made a mistake but I really don't wanna tell him that unless I'm like 1000% sure I've checked the file myself properly..hahahaha
>>
>>old unix used only LF, DOS operates just on CR without problem, CRLF supposed to work across.
>
>Ok. I don't know what platform he's using to import the file - however finding that ALL my lines end with the CRLF aka chr(13) chr(10) , and there is nothing anywhere else in the file where the ASCII value is less than 32, sorta tells me that he shouldn't be having an issue with just a few of the lines - at least not because of an embedded carriage return anyway.
>
Sounds like he is in over his head.

give him 2 more files, one with only CR, one with only LF at line end. Chrtran to the rescue ;-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform