V5 -- Print Optical Shaft Encoder values to a file

I am new to V5 programming and I am currently working on a project for which I want to create a chart of the shaft encoder values as the robot moves around. I am planning to use VCS or VexCode for programming and I am trying to find out if there is a way to print optical shaft encoder values continuously to a file.