Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- output = open("all_files.c", "w")
- for subdir, dirs, files in os.walk("CooolOS"):
- print(subdir)
- for file in files:
- curr = open(subdir + "\\"+file, "r").read()
- curr = curr.replace("""/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */""", "")
- header = "/******\n" + file +"\n*********/\n"
- output.write(header)
- output.write(curr + '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement