Text File Size | 2.4 | OCR GCSE Computer Science | J277

5 flashcards

File size of a text file =
bits per character X number of characters
How many bites per character does ASCII use?
8
How many bites per character does Unicode use?
16
A small text file uses the ASCII character set and has 250 characters. Work out the file size.
8 x 250 = 2000 bits
A text file uses the Unicode character set and has 335 characters. Work out the file size in bytes.
16 x 335 = 5680 bits 5680 / 8 = 710 bytes.