diff --git a/cmake-build-debug/.ninja_deps b/cmake-build-debug/.ninja_deps new file mode 100644 index 0000000..0128248 Binary files /dev/null and b/cmake-build-debug/.ninja_deps differ diff --git a/cmake-build-debug/.ninja_log b/cmake-build-debug/.ninja_log new file mode 100644 index 0000000..1a10978 --- /dev/null +++ b/cmake-build-debug/.ninja_log @@ -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 diff --git a/cmake-build-debug/CMakeFiles/Tarstats__.dir/main.cpp.o b/cmake-build-debug/CMakeFiles/Tarstats__.dir/main.cpp.o new file mode 100644 index 0000000..ae052eb Binary files /dev/null and b/cmake-build-debug/CMakeFiles/Tarstats__.dir/main.cpp.o differ diff --git a/cmake-build-debug/Tarstats__ b/cmake-build-debug/Tarstats__ new file mode 100755 index 0000000..3d2f714 Binary files /dev/null and b/cmake-build-debug/Tarstats__ differ diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index 78b0bea..a25e4bb 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -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 diff --git a/main.cpp b/main.cpp index bc8f460..8e30840 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,21 @@ #include +#include +#include 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; } diff --git a/test.tar b/test.tar new file mode 100755 index 0000000..a55f776 Binary files /dev/null and b/test.tar differ