Anonymous
10/24/2025, 12:29:15 AM
No.106987909
[Report]
>>106988144
>>106988189
>>106988236
>>106988435
>>106988511
>>106988546
>>106988711
>>106988759
>>106988809
>>106988882
>>106990286
>>106991672
>>106991991
>>106992557
C++ :
std::filesystem::path filePath(argv[1]);
std::ifstream file(filePath, std::ios::binary);
std::string fileSource((std::istreambuf_iterator<char>(file)),
std::istreambuf_iterator<char>());
std::cout << fileSource << std::endl;
retarded
C :
FILE* f = fopen(argv[1], "r");
fseek(f, 0, SEEK_END);
size_t sz = ftell(f);
fseek(f, 0, SEEK_SET);
char* src = malloc(sz+1);
fread(src, 1,sz, f);
fclose(f);
src[sz] = '\0';
printf("%s\n", src);
retarded
Python:
with open("file.txt") as file:
data = file.read()
print(data)
simple, just works
cniles and npc++ btfo
std::filesystem::path filePath(argv[1]);
std::ifstream file(filePath, std::ios::binary);
std::string fileSource((std::istreambuf_iterator<char>(file)),
std::istreambuf_iterator<char>());
std::cout << fileSource << std::endl;
retarded
C :
FILE* f = fopen(argv[1], "r");
fseek(f, 0, SEEK_END);
size_t sz = ftell(f);
fseek(f, 0, SEEK_SET);
char* src = malloc(sz+1);
fread(src, 1,sz, f);
fclose(f);
src[sz] = '\0';
printf("%s\n", src);
retarded
Python:
with open("file.txt") as file:
data = file.read()
print(data)
simple, just works
cniles and npc++ btfo