Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fputs() or fwrite() ?
Message
From
30/09/2000 23:23:46
 
 
To
28/09/2000 11:22:56
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00422081
Message ID:
00423203
Views:
10
>How can i assure that fputs or fwrite writes a single line of text and the text file contains one single line of text too?
>

FPUTS() adds a newline to the end-of-line, FWRITE() does not. If you need to write part of a line, planning to write more to the same line, use FWRITE() to write to the file. You can always add a newline (CHR(13)+CHR(10)) to the next FWRITE() to start on the next line.

If you never put a newline character in the text, it's only one line; you may find that if you try to send that to a printer, either Windows or the printer itself may force the line to split; that's an issue with your printer driver or the printer itself. If viewed in a WinApp such as Notepad or Wordpad, they may turn on word-wrap. None of these is controlled with VFP.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform