Erste Versuche, Problem: tar öffnet nicht

This commit is contained in:
Marcel Nowicki
2022-02-04 19:00:29 +01:00
parent 178989fc78
commit 3b287422fa
7 changed files with 45 additions and 3 deletions

Binary file not shown.

View File

@@ -0,0 +1,27 @@
# ninja log v5
0 368 1643996001827534305 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
369 437 1643996001895533937 Tarstats__ fcf6c268460ac9e5
1 413 1643996601134048853 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
413 478 1643996601198049734 Tarstats__ fcf6c268460ac9e5
0 408 1643996867865600394 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
408 464 1643996867921600491 Tarstats__ fcf6c268460ac9e5
1 409 1643996929377771796 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
409 466 1643996929437772022 Tarstats__ fcf6c268460ac9e5
1 405 1643996936869800636 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
405 465 1643996936925800857 Tarstats__ fcf6c268460ac9e5
1 422 1643997109490818569 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
422 488 1643997109558819075 Tarstats__ fcf6c268460ac9e5
1 383 1643997181451388022 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
383 440 1643997181507388489 Tarstats__ fcf6c268460ac9e5
1 381 1643997210251632389 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
381 436 1643997210307632871 Tarstats__ fcf6c268460ac9e5
0 386 1643997280000255419 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
386 442 1643997280056255935 Tarstats__ fcf6c268460ac9e5
0 391 1643997413405538934 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
392 448 1643997413461539492 Tarstats__ fcf6c268460ac9e5
1 385 1643997444029846074 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
385 441 1643997444085846640 Tarstats__ fcf6c268460ac9e5
0 376 1643997524954673936 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
376 433 1643997525010674516 Tarstats__ fcf6c268460ac9e5
1 383 1643997595983415902 CMakeFiles/Tarstats__.dir/main.cpp.o acbcb9e1db8f452d
383 440 1643997596039416492 Tarstats__ fcf6c268460ac9e5

Binary file not shown.

BIN
cmake-build-debug/Tarstats__ Executable file

Binary file not shown.

View File

@@ -1,3 +1,3 @@
Start testing: Feb 04 18:31 CET
Start testing: Feb 04 18:59 CET
----------------------------------------------------------
End testing: Feb 04 18:31 CET
End testing: Feb 04 18:59 CET

View File

@@ -1,6 +1,21 @@
#include <iostream>
#include <fstream>
#include <string>
int main() {
std::cout << "Hello, World!" << std::endl;
if (std::ifstream datei{"test.tar", std::ios::binary}) {
int buffersize = 512;
char *buffer;
datei.read(buffer, buffersize);
datei.close();
std::cout << buffer[0] << buffer[1] << std::endl;
}
else
std::cout << " Fehler ! " << std::endl;
return 0;
}

BIN
test.tar Executable file

Binary file not shown.