How to count characters in a text file using batch file
问题 I want to count all the characters of a certain text. However in my code it only counts single string. But the requirement needs to count all characters including whites spaces and new line.. For example: Hello World! How are you today? Hope you are okay How am i going to do that in my code?Thanks. My code: @ECHO OFF for %%i in (y.txt) do @set count=%%~zi REM Set "string" variable SET string=(Hello World How are you today? Im fine..) // i want to read these string because my code only read