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:
4
main.cpp
4
main.cpp
@@ -8,9 +8,9 @@ int main() {
|
||||
std::cout << "Fehler beim Oeffnen der Datei" << std::endl;
|
||||
|
||||
int buffersize = 512;
|
||||
char* buffer = new char[512];
|
||||
char* buffer = new char[buffersize];
|
||||
|
||||
datei.read(buffer, 512);
|
||||
datei.read(buffer, buffersize);
|
||||
std::string filename{};
|
||||
for (int i = 0; i <= 99; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user