Information générale
Catégorie:
Codage, syntaxe et commandes
>>>Need help.
>>>
>>>How do you let strtofile() behave like fputs? I just can't gets strtofile to do a carriage return even when I append the character expression with chr(13).
>>>
>>>Thanks
>>
>>Mohammed,
>>StrTofile(lcString) just writes your lcString as is whatever the chars it has printable or nonprintable.
>>lcString = 'Hello'+chr(13)
>>StrTofile(lcString, lcFile)
>>outputs Hello< CR >
>>You can see that :
>>do home()+'tools\hexedit\hexedit' with (lcFile)
>>Cetin
>
>BTW fputs() uses chr(13)+chr(10) not just chr(13).
>Cetin
Thanks. The chr(10) did the trick.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement