- success: open tarball

- success: read name of first file in archive and print it
This commit is contained in:
Marcel Nowicki
2022-02-05 00:06:31 +01:00
parent de21161bbd
commit 5c1e55fd0b
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@@ -1,3 +1,3 @@
Start testing: Feb 04 23:59 CET Start testing: Feb 05 00:05 CET
---------------------------------------------------------- ----------------------------------------------------------
End testing: Feb 04 23:59 CET End testing: Feb 05 00:05 CET

View File

@@ -8,9 +8,9 @@ int main() {
std::cout << "Fehler beim Oeffnen der Datei" << std::endl; std::cout << "Fehler beim Oeffnen der Datei" << std::endl;
int buffersize = 512; int buffersize = 512;
char* buffer = new char[512]; char* buffer = new char[buffersize];
datei.read(buffer, 512); datei.read(buffer, buffersize);
std::string filename{}; std::string filename{};
for (int i = 0; i <= 99; i++) for (int i = 0; i <= 99; i++)
{ {