This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example Usage: python split.py yourInputCSVHere.csv | |
import csv, sys | |
incsv = open(sys.argv[1], 'r') | |
outcsv = open('new-' + sys.argv[1], 'w') | |
counter = 1 | |
csvreader = csv.reader(incsv, delimiter=',', quotechar='"') | |
for row in csvreader: | |
outcsv.write(str(row[0]) + ',file' + str(counter) + '.txt,file' + str(counter) + '.txt by ' + str(row[0]) + '\n') | |
doc = open('file' + str(counter) + '.txt', 'w') | |
doc.write(row[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#pragma pack(push, 1) | |
struct BMP { | |
uint8_t id1; | |
uint8_t id2; | |
uint32_t filesize; |