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.57 MB
Time: 0.027 c
1:22201
T2
2001-12-16 07:13
2002.01.08
Sound Spectr


1:22203
T2
2001-12-16 07:07
2002.01.08
Catching the absence error msWord


3:21992
dlK
2001-12-06 15:21
2002.01.08
How not to give programmine


14:22399
Mcsimm
2001-11-11 12:01
2002.01.08
Formatting in the answers


7:22425
Andrey
2001-06-19 15:45
2002.01.08
Scanner function





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 Spanish 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