diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 59c7749..c3e19fe 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -95,16 +95,6 @@ snippet cout # std::cin snippet cin std::cin >> ${1};${2} -# read file into vector -snippet readfile - std::vector v; - if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) { - char buf[1024]; - while (size_t len = fread(buf, 1, sizeof(buf), $2)) - v.insert(v.end(), buf, buf + len); - fclose($2); - }${3} - ## ## Iteration # for i