You are using
_tprintf_s
which prints a formatted string to
stdout
, as described
here on MSDN[
^]. You need to create an internal structure, array or similar in the file reading code, which will contain all your tokens in some useful order. Then in your
OnPaint
method you render that data onto your SDI client view, tabulated according to your requirements. There are lots of samples in the articles section that should show you how to do it.