0

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.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by especta
1

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

Votes + Comments
good example for my problem
0

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.

Edited by especta: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.