SilkyFalcon

Generation

generate functionWed, 07 Dec 2022

open every file in a specific folder than open all of them and write "Coded by Inventex" to the first line as a comment

func writeToFile(folder: path) { files = getFiles(path: folder) for file in files { f = open(file: file) f.write("Coded by Inventex") } }

Questions about programming?Chat with your personal AI assistant