You can use the command "type" in the command line to read the contents of the text file in Windows 10.
How to read file contents from command line in Windows 10 ?
Lets say , you want to print the contents of the file d:\ac.txt.
Below is the command that you will be using.
D:\>type ac.txt Welcome to abundantcode.com D:\>