mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2025-12-10 00:39:01 +01:00
- success: open tarball
- success: read name of first file in archive and print it
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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
|
||||||
|
|||||||
4
main.cpp
4
main.cpp
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user