English | 中文
import 'package:dict_reader/dict_reader.dart';
void main() async {
final dictReader = DictReader("MDX FILE PATH");
await dictReader.init();
await for (final (keyText, data) in dictReader.read(true)) {
print("$keyText, $data");
}
}
import 'package:dict_reader/dict_reader.dart';
void main() async {
final dictReader = DictReader("MDX FILE PATH");
await dictReader.init();
final map = <String, (int, int, int, int)>{};
await for (final (keyText, offset) in dictReader.read()) {
map[keyText] = offset;
}
final offset = map["go"];
print(await dictReader.readOne(offset!.$1, offset.$2, offset.$3, offset.$4));
}
import 'package:dict_reader/dict_reader.dart';
// ...
void main() async {
// ...
final dictReader = DictReader("MDX FILE PATH");
// Pass false to reduce initialization time
await dictReader.init(false);
final offset = map["go"];
print(await dictReader.readOne(offset!.$1, offset.$2, offset.$3, offset.$4));
}