source:
testjes/testgetfile.cpp
Last change on this file was 10, checked in by willem, 11 years ago | |
---|---|
File size: 283 bytes |
Line | |
---|---|
1 | // g++ prog.cpp -I ../trunk ../trunk/utils.o |
2 | #include <iostream> |
3 | #include "../trunk/wutils.h" |
4 | int main() |
5 | { |
6 | std::string f = "/home/willem/.bashrc"; |
7 | std::string a; |
8 | int rc = get_file_contents(a,f); |
9 | std::cout << "rc:"<<rc<<std::endl; |
10 | std::cout << a<<std::endl; |
11 | |
12 | |
13 | return 0; |
14 | } |
Note: See TracBrowser
for help on using the repository browser.