From 03b7d9e98be5723e26a4b2143d09720dfa8b42b4 Mon Sep 17 00:00:00 2001 From: Aaron Broder Date: Fri, 31 Aug 2012 14:56:09 -0700 Subject: [PATCH] [cpp] Removed readfile snippet. The snippet doesn't use expected C++ practices for reading files and is more of a Textmate legacy. --- snippets/cpp.snippets | 10 ---------- 1 file changed, 10 deletions(-) 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