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

Down

Download file! Find similar branches


Socol   (2001-12-18 08:54) [0]

Hello! Why when this code writes information to a file, it turns out there is not qqqqqq but some kind of glitch any questions on the dash?
procedure TForm1.Button3Click (Sender: TObject);
var FileHandle: Integer;
S: string;
begin
S: = "qqqqqq";
FileHandle: = FileCreate ("C: \ q.txt");
FileWrite (Filehandle, S, sizeof (S));
FileClose (FileHandle);
end;



MBo   (2001-12-18 09:00) [1]

because string is a pointer, Sizeof = 4. Do, for example, so.
var f: textfile;
s: string;
begin
S: = "qqqqqq";
AssignFile (f, "C: \ q.txt");
Rewrite (f);
Writeln (F, S);
CloseFile (F);




Mick   (2001-12-18 09:29) [2]

FileWrite (FileHandle, S [1], Length (S))



Pages: 1 whole branch

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

Top





Memory: 0.54 MB
Time: 0.039 c
4:22468
Zabl
2001-11-02 11:56
2002.01.08
Memory leak


1:22076
Snake
2001-12-19 12:50
2002.01.08
How to find out the release date of the BIOS?


3:21956
Sevostyanov Igor
2001-12-05 17:56
2002.01.08
Programmatically execute SHUTDOWN IMMEDIATE


1:22137
AlexandrH_
2001-12-20 08:06
2002.01.08
How to manage focus in StringGride.


4:22454
Ewgeniy
2001-10-31 07:40
2002.01.08
Display on the form of graphics from memory





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