diff options
author | chriseth <chris@ethereum.org> | 2017-10-19 19:39:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 19:39:28 +0800 |
commit | b96602122c2380b1759a8f657a9b97e30c5978b0 (patch) | |
tree | 5f7274239b911ecb08e7dcfbef66780620de7231 /libdevcore/CommonIO.h | |
parent | 892c3ef8efeb3a79c9e11722651f430f392071c6 (diff) | |
parent | 6f2865228cb02f0ba0b58990a9d3006dbe2692c6 (diff) | |
download | dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar.gz dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar.bz2 dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar.lz dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar.xz dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.tar.zst dexon-solidity-b96602122c2380b1759a8f657a9b97e30c5978b0.zip |
Merge pull request #3098 from ethereum/cli-cleanup
Cleanup some file/io reader in devcore
Diffstat (limited to 'libdevcore/CommonIO.h')
-rw-r--r-- | libdevcore/CommonIO.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdevcore/CommonIO.h b/libdevcore/CommonIO.h index d84362cf..33769ec3 100644 --- a/libdevcore/CommonIO.h +++ b/libdevcore/CommonIO.h @@ -32,7 +32,10 @@ namespace dev /// Retrieve and returns the contents of the given file as a std::string. /// If the file doesn't exist or isn't readable, returns an empty container / bytes. -std::string contentsString(std::string const& _file); +std::string readFileAsString(std::string const& _file); + +/// Retrieve and returns the contents of standard input (until EOF). +std::string readStandardInput(); /// Write the given binary data into the given file, replacing the file if it pre-exists. /// Throws exception on error. |