A script to read all files in a given directory and convert their content to kotlin's const val file_name = """file content"""
The script expects
kotlincto be on the path.
- Download the
dirToKt.ktsfile - Make it executable
chmod +x dirToKt.kts - Run is like any other script
./dirToKt.kts [targetDirectory] [outputFile]
Alternatively you could run it with kotlinc directly: kotlinc -script dirToKt.kts [targetDirectory] [outputFile]