Predict the effect of save cleanup settings

An engineering source file occupies exactly 1240 bytes. Every character in its text occupies one byte. Its 32 lines consist of 28 lines containing source text and four internal lines containing only three spaces each. Nine of the source-text lines end with four spaces each; the other source-text lines have no trailing spaces. The final line contains source text.


The first 31 lines each end with a two-byte carriage-return-and-line-feed sequence, abbreviated CRLF. The final line has no ending sequence. A line-feed ending, abbreviated LF, occupies one byte. No other bytes are present.


You save two independent copies of the original file with these editor settings:

  • Copy A: remove trailing spaces from every line, retain the resulting empty lines, convert all CRLF endings to LF, and add an LF ending to the final line.
  • Copy B: delete the four space-only lines together with their ending sequences, remove trailing spaces from the remaining lines, convert all remaining CRLF endings to LF, and add an LF ending to the final line.

Neither save changes any other source characters or adds an encoding marker. Find the final size of Copy A and the final size of Copy B, in bytes, as exact integers.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Editors Questions: