[Tutorial] Binary file I/O in PAWN
#12

Quote:
Originally Posted by thefatshizms
View Post
So it only reads it in 8 bits then?
Us humans count in powers of 10 whereas computers count in powers of 2. Hence 2^3 = 8. I guess it's 8 bits, because that's all you really need for characters. An unsigned 8 bit number has a max value of 2^8 - 1 (255 because we have to include 0 as a number). The extended ascii chart conveniently has 256 characters!

If I'm wrong , then it's just 2^7 - 1 so the cpu can process negative numbers as well.

@OP - This tutorial was a great read.
Reply


Messages In This Thread
Binary file I/O in PAWN - by BigETI - 14.04.2013, 22:50
AW: Binary file I/O in PAWN - by IPrototypeI - 15.04.2013, 12:27
Re: Binary file I/O in PAWN - by Vince - 15.04.2013, 12:50
AW: Binary file I/O in PAWN - by BigETI - 15.04.2013, 14:00
Re: Binary file I/O in PAWN - by thefatshizms - 15.04.2013, 15:32
Re: Binary file I/O in PAWN - by iggy1 - 15.04.2013, 15:46
AW: Binary file I/O in PAWN - by BigETI - 15.04.2013, 19:38
Re: Binary file I/O in PAWN - by michaelcosyns - 18.04.2013, 18:50
Re: Binary file I/O in PAWN - by thefatshizms - 20.04.2013, 13:04
AW: Binary file I/O in PAWN - by BigETI - 20.04.2013, 20:50
Re: Binary file I/O in PAWN - by thefatshizms - 20.04.2013, 21:38
Re: Binary file I/O in PAWN - by ReneG - 21.04.2013, 00:59
Re: Binary file I/O in PAWN - by xeeZ - 20.07.2013, 17:36
AW: Binary file I/O in PAWN - by BigETI - 21.07.2013, 04:37
AW: Re: AW: Binary file I/O in PAWN - by BigETI - 21.07.2013, 14:34
AW: Binary file I/O in PAWN - by BigETI - 21.07.2013, 16:29
Re: Binary file I/O in PAWN - by Hitman-97- - 25.01.2014, 11:37
AW: Binary file I/O in PAWN - by Nero_3D - 25.01.2014, 12:49
AW: Binary file I/O in PAWN - by BigETI - 26.01.2014, 14:09
Re: Binary file I/O in PAWN - by Bombaci - 09.10.2018, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)