File2Data
Posted: Tue Aug 11, 2009 1:09 am
hi, How can i convert any file to datasection
for examp convert file.bin to
i know this way is easier to use
but i want know how can i convert my files to these bytes ?
anybody have a code or program ?
thanks
for examp convert file.bin to
Code: Select all
DataSection
ByteCode:
Data.b $01,$02,$74,$65,$73,$74,$00,$03,$48,$65,$6C,$6C
Data.b $6F,$21,$00,$03,$54,$68,$69,$73,$20,$69,$73,$20
Data.b $61,$20,$73,$6D,$61,$6C,$6C,$20,$63,$6F,$6E,$73
Data.b $6F,$6C,$65,$20,$74,$65,$73,$74,$2E,$00,$03,$00
Data.b $03,$70,$72,$65,$73,$73,$20,$3C,$52,$45,$54,$55
Data.b $52,$4E,$3E,$20,$74,$6F,$20,$63,$6F,$6E,$74,$69
Data.b $6E,$75,$65,$2E,$2E,$2E,$00,$04,$05,$FF
EndDataSection
Code: Select all
DataSection
File:
IncludeBinary "C:\file.bin"
EndDataSection
anybody have a code or program ?
thanks