ZArchive icon indicating copy to clipboard operation
ZArchive copied to clipboard

Example - Basic read file question

Open Z3USI0TA opened this issue 7 months ago • 0 comments

Hi. if somebody could help me I would appreciate it.

#include "zarchive/zarchivereader.h"

int main() { ZArchiveReader* reader = ZArchiveReader::OpenFromFile("Text.zar"); if (!reader) return -1; ZArchiveNodeHandle fileHandle = reader->LookUp("Text.txt"); if (reader->IsFile(fileHandle)) { // Text.txt to string? // Is possivel -> Text.txt to simbolicLink Junction?

          CreateJunction(TEXT("C:\\Game"), TEXT("D:\\Game"));  //Work Correct.

}
delete reader;
return 0;

}

Sorry, I'm learning c++

Z3USI0TA avatar Jun 28 '24 22:06 Z3USI0TA