Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Millet question! Find similar branches


Art   (2001-12-15 09:28) [0]

How to read a piece from a file, please read the current code!



MBo   (2001-12-15 09:46) [1]

the standard answer is which file?



Art   (2001-12-15 09:48) [2]

A text file, but larger than it fits into a string, needs to be read into stream, but I can't do anything.



MBo   (2001-12-15 10:29) [3]

again
The string breaks 4 gigabytes.
The easiest
var sl: tstringlist;
sl: = tstringlist.create;
sl.loadfromfile ("e: \ yourfile.txt");
.
sl.free;
about stream see help



Anatoly Podgoretsky   (2001-12-15 11:53) [4]

MBo © (15.12.01 10: 29)
Length (S) = INTEGER



Anatoly Podgoretsky   (2001-12-15 11:55) [5]

Art © (15.12.01 09: 48)

SetLength (S, how many)



Art   (2001-12-15 17:37) [6]

'top, in the help it says that the usual string is the default 255 byte, and if I try ansistring, I get an error, maybe I’m doing something wrong !?



Anatoly Podgoretsky   (2001-12-15 18:15) [7]

Probably something wrong doing, but you do not give details. You probably have an extra secret program.



Арт   (2001-12-15 19:05) [8]

What parameters should be string to be 4 mb ?????



Delirium   (2001-12-15 19:12) [9]

var a: String; // before 4Gb :)



Anatoly Podgoretsky   (2001-12-15 22:01) [10]

Delirium © (15.12.01 19: 12)
Where did you read?



MBo   (2001-12-16 07:47) [11]

> Art
the default string string in Delphi is ansistring -
up to 2 gigabytes. Short (255) it will be in the event that it is written shortstring or in the options of the compiler it is necessary to disable huge strings (or in the text {$ H-}.
According to the information from the two branches, I think that loadfromfile still suits you.
> AP
Ah, a flight of fancy and a sickle.
I'll fix it. I will write "string but big";)



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.84 MB
Time: 0.041 c
14-22317
Tosov
2001-10-31 23:58
2002.01.08
Delphi 6


1-22008
Alligator
2001-12-17 11:46
2002.01.08
HELP !!!


14-22395
Alien
2001-11-07 01:15
2002.01.08
What mess is different from the order?


7-22437
paradox
2001-09-25 18:48
2002.01.08
wav


7-22427
KLM
2001-09-20 06:34
2002.01.08
Copy protection





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish