Skip to content

Instantly share code, notes, and snippets.

View m42e's full-sized avatar

Matthias Bilger m42e

View GitHub Profile
for line in open('Kontaktliste.txt', 'r').readlines():
fn, s, p, c, t, e = map(str.strip, line.split(','))
a = f"{s}\\n{p} {c}"
v, n = fn.split(' ')
vcf=f"""
BEGIN:VCARD
VERSION:3.0
N;CHARSET=UTF8:{n};{v};;;
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string line;