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.58 MB
Time: 0.028 c
4-22460
Dimich
2001-11-01 08:49
2002.01.08
People HELP !!! Disher burns !!!


1-22134
Rosco
2001-12-15 12:54
2002.01.08
And this is already there?


1-22190
T2
2001-12-14 03:22
2002.01.08
KillSelf


14-22319
iea
2001-11-02 13:34
2002.01.08
Anyone who wears (l) glasses! The question is not idle


1-22169
Kreo
2001-12-20 21:16
2002.01.08
Files and access





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