How to rename all files within a folder with the first word of their content?
Rename all files within a folder with the first word of their content. For example if s1.txt contains “Java is a Programming language” in its first line then s1.txt should be renamed to Java.txt
How to rename all files within a folder with the first word of their content?
===

Rename all files within a folder with the first word of their content. For example if s1.txt contains “Java is a Programming language” in its first line then s1.txt should be renamed to Java.txt