cpp_str //
├─ copyFile.c //
├─ copyFile.exe //
├─ ifstreamTest.cpp //
├─ ifstreamTest1.txt //
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cxxabi.h> //abi::__cxa_demangle | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <typeinfo> | |
#include <vector> | |
template <typename T> | |
class IOProcessor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
enum class ErrorCode { | |
SUCCESS, | |
FILE_OPEN_FAILED, | |
FILE_WRITE_FAILED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
ifstream in1; | |
in1.open("ifstreamTest1.txt"); | |
if (in1.fail()) { | |
cout << "file opening is failed...\n"; | |
exit(1); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
static int copyfile(const char *src_name, const char *tar_name) { | |
char buffer[8192]; | |
size_t read = 0; | |
if (!src_name || !tar_name) return -1; | |
FILE *src_file = fopen(src_name, "rb"); | |
if (src_file == NULL) { |
ulimit -s 81920
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <queue> | |
#include <sstream> | |
#include <stack> | |
#include <string> | |
#include <vector> | |
template <typename T> | |
class IOProcessor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = [Text.UTF8Encoding]::UTF8 |
NewerOlder