readFile reads an entire file into a string, vector<char>, or similar
authorAndrei Alexandrescu <aalexandre@fb.com>
Wed, 15 Jan 2014 18:38:22 +0000 (10:38 -0800)
committerJordan DeLong <jdelong@fb.com>
Sun, 19 Jan 2014 01:39:37 +0000 (17:39 -0800)
commit52ba96edd198f7985f0315b034f84c6dd29234c5
tree0c19495c48be35f145eb84e0255b6e251fc4e7d4
parent5a7d0d75ee3a7bcb442ef42c0ddbe53e4c7b2198
readFile reads an entire file into a string, vector<char>, or similar

Test Plan: unittest

Reviewed By: lucian@fb.com

FB internal diff: D1129497
13 files changed:
folly/File.h
folly/FileUtil.h
folly/String-inl.h
folly/String.h
folly/experimental/FileGen-inl.h
folly/experimental/io/HugePages.cpp
folly/experimental/test/GenBenchmark.cpp
folly/experimental/test/GenTest.cpp
folly/io/test/RecordIOTest.cpp
folly/test/FileUtilTest.cpp
folly/test/MemoryMappingTest.cpp
folly/test/StringTest.cpp
folly/test/SubprocessTest.cpp