I am writing an application where I want to compare the size of two lines. By size, I mean the disk space that they would occupy if they were directly saved to disk.
Is it possible to calculate the line size in C # without saving to disk and checking file information (if only it is more efficient to save it to disk)?
source
share