Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtofile() function
Message
From
03/04/2001 07:28:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/04/2001 07:25:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00491247
Message ID:
00491251
Views:
8
>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform