Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Size of txt file
Message
From
12/04/2001 07:08:31
 
 
To
11/04/2001 20:51:02
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00494713
Message ID:
00494775
Views:
27
>Hi,
>
>What is the size of each line in txt file ?

There's no fixed size for the generic text file type; in general, text files are variable length collections of records that are terminated with carriage return/line feed - CHR(13) + CHR(10) - pairs marking the end of each line. If the file is not created on a Windows-environment computer (eg a Mac or Unix box), the terminator may vary - for example, it may expect only a linefeed character to end the line. The last line may not have a terminating character at all, and in some cases, an end-of-file mark (CHR(26)) may be used to indicate the end of file condition.

If you're receiving data from another program with fixed-length records, the other program would establish the line length.

In old DOS systems, designed for output on normal letter paper using 1/4" margins and 10 characters/inch, a line would be 80 characters long. If it used 12 CPI (typically referred to as Elite as opposed to Courier font) it would be 96 characters per line. This assumes a monospaced font where all characters are equal width; proportional fonts don't have regular character spacing.

What are you trying to do?
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