byte range is 0x00 to 0xFF haw to write to text file
like this
byte 0x00 =
byte 0x01 =
byte 0x02 =
...... all to byte 0xFF
Thanks.

Recommended Answers

byte range is 0x00 to 0xFF haw to write to text file
like this
byte 0x00 =
byte 0x01 =
byte 0x02 =
...... all to byte 0xFF
Thanks.

Hi
this is the solotion of your problem

Var
    byt:byte;
    OutFile:TextFile;
begin
    Assignfile(OutFile,'OutFile.txt');
    Rewrite(OutFile);
    For Byt:=0 to 255 do
      Writeln(OutFile,'Byte 0X …
Jump to Post

All 2 Replies

byte range is 0x00 to 0xFF haw to write to text file
like this
byte 0x00 =
byte 0x01 =
byte 0x02 =
...... all to byte 0xFF
Thanks.

Hi
this is the solotion of your problem

Var
    byt:byte;
    OutFile:TextFile;
begin
    Assignfile(OutFile,'OutFile.txt');
    Rewrite(OutFile);
    For Byt:=0 to 255 do
      Writeln(OutFile,'Byte 0X '+InttoHex(Byt,2));
   CloseFile(OutFile);
End

This Routin is written by delphi sintax if you want it to pascal sintax you mast do some change on it

commented: good example for my problem +1

Hi
this is the solotion of your problem

Var
    byt:byte;
    OutFile:TextFile;
begin
    Assignfile(OutFile,'OutFile.txt');
    Rewrite(OutFile);
    For Byt:=0 to 255 do
      Writeln(OutFile,'Byte 0X '+InttoHex(Byt,2));
   CloseFile(OutFile);
End

This Routin is written by delphi sintax if you want it to pascal sintax you mast do some change on it

Thanks for replay this is solution of my Problem.
Big Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.