How does the white-spaces affect the size of the two notepad files

radha gogia

radha gogia

@radha-BTDzli Oct 26, 2024

Consider two files ,one has very less spaces between the text written on it,while one which has a lot of spaces between the text ,so how does the introduction of white-spaces increases the size of the notepad file.

here the size of size2.txt file is greater than size1.txt file,so what is the appropriate reason for it?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Koushal Patel

    Koushal Patel

    @koushal-C6mEgp Feb 28, 2015

    Quoting wiki link
    whitespace is any character or series of whitespace characters that represent horizontal or vertical space in typography. When rendered, a whitespace character does not correspond to a visible mark, but typically does occupy an area on a page.
    Details:
    <a href="https://en.wikipedia.org/wiki/Whitespace_character" target="_blank" rel="nofollow noopener noreferrer">Whitespace Character</a>

  • rahul69

    rahul69

    @rahul69-97fAOs Mar 3, 2015

    radha gogiaConsider two files ,one has very less spaces between the text written on it,while one which has a lot of spaces between the text ,so how does the introduction of white-spaces increases the size of the notepad file.

    here the size of size2.txt file is greater than size1.txt file,so what is the appropriate reason for it?

    Although Whitespace is not visible, but still it is a character, it has it's own ASCII value and hence consumes space when represented, like any other character.