Create your own ASCII chart

Share your advanced PureBasic knowledge/code with the community.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Create your own ASCII chart

Post by Kale »

Code updated For 5.20+

A small snippet that i used to create the ASCII chart in my book.

Code: Select all

If CreateFile(1, "ASCII Table.txt")
	For x = 0 To 255
		WriteStringN(1, Chr(x) + #TAB$ + Str(x) + #TAB$ + RSet(Hex(x), 2, "0") + #TAB$ + RSet(Bin(x), 8, "0"))
	Next x
	CloseFile(1)
EndIf
Might be useful for people who want to create their own for docs/webpages/etc...
--Kale

Image