sq3: show SQLite error messages on stderr by default
[iv.d.git] / arcztest / zlist.d
blob9a5d21b1da91d7deb88902f9db6c72e37c5e905f
1 module zlist /*is aliced*/;
3 import iv.alice;
4 import iv.arcz;
5 import std.stdio;
8 // ////////////////////////////////////////////////////////////////////////// //
9 void main (string[] args) {
10 import std.stdio;
11 ArzArchive arc;
12 writeln("opening archive...");
13 arc.openArchive((args.length > 1 ? args[1] : "z00.arz"));
14 writeln(arc.files.length, " files found");
15 foreach (auto v; arc.files.byValue) {
16 writefln("%12u %12u %12u %s", v.size, v.chunk, v.chunkofs, v.name);
18 debug(arcz_rc) {
20 ArzArchive a0;
21 a0 = arc;
24 auto a1 = ArzArchive(arc);
27 version(none) {
28 auto fl = arc.open((args.length > 2 ? args[2] : "simpledisplay.Timer.fd.html"));
29 writeln("size: ", fl.size);
30 auto buf = new char[](fl.size);
31 auto rd = fl.rawRead(buf[]);
32 assert(rd.length == buf.length);
33 writeln(buf[]);