Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Answer: Is there a length limit to a string? In a flat file?

by Biker (Priest)
on Dec 21, 2001 at 17:53 UTC ( #133751=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > Is there a length limit to a string? In a flat file? - Answer contributed by Biker

Juerd already answered this from a Perl point of view. I'll answer the file oriented part of the question:

A file does have no notion of 'lines'. A file is an ordered collection of bytes with specific values. It is the software that reads and/or writes the file that decides what a line is.

The convention says that in the DOS/Windows world a line is delimited by CRLF and that in the UNIX world a line is delimited by LF. But this is only a convention. (Which is clearly indicted by the fact that DOS and UNIX have different conventions. ;-)

As long as your file system can cope with it, you can make the file as big as you want. You can thereby store as long a 'line' as you want in the file.

  • Comment on Answer: Is there a length limit to a string? In a flat file?
Log In?

What's my password?
Create A New User
Corion idly wonders about creating a series of HTTP requests. There seems to be no framework to generate a series of HTTP requests, like "try all these requests"
[Corion]: This is vaguely inspired by that list of "nasty" strings, which I'd like to replace among HTTP parameters, just to see whether the application crashes, but also for easy downloading of a list of URLs etc
[Corion]: Maybe I'll just conoct something using Algorithm::Permute to create an (OO) generator for such requests, or a simple function.
[Corion]: For testing I imagine one would want to test a random sampling of such "bad"/"unexpected" requests, while for downloading, one would want to generate them all in order, but not necessarily as a huge list

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-01-16 15:38 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.