缘起

在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达140MB了,于是进去看看。

发现个有趣的文件:XXX.sql。

首先我们看一看它的安装文件夹的结构:


Dict
    └─Application
        │  guid.dat
        │  Readme.txt
        │  uninst.exe
        │  vendor.dat
        │  YodaoDict.exe
        │
        ├─5.4.43.3217
        │  │  CrashRpt.dll
        │  │  dictcn.db
        │  │  dicten.db
        │  │  doc.tpl
        │  │  guid.dat
        │  │  InstallDaemon.exe
        │  │  Monitor.exe
        │  │  TextExtractorImpl32.dll
        │  │  TextExtractorImpl64.dll
        │  │  Versions.xml
        │  │  WordBook.exe
        │  │  WordStrokeHelper32.dll
        │  │  WordStrokeHelper64.dll
        │  │  XDLL.dll
        │  │  YodaoDict.api
        │  │  YoudaoCookieAssist.exe
        │  │  YoudaoDictInstaller.exe
        │  │  YoudaoDictPlugin.mxaddon
        │  │  YoudaoDictPlugin.sext
        │  │  YoudaoDictPlugin_360.crx
        │  │  YoudaoEH.exe
        │  │  YoudaoWSH.exe
        │  │
        │  ├─intro
        │  │  │  pre.html
        │  │  │  step1.html
        │  │  │  step2.html
        │  │  │  step3.html
        │  │  │  style.css
        │  │  │
        │  │  └─images
        │  │          arrow.png
        │  │          dot.gif
        │  │          sprite.jpg
        │  │          topbar_step_arrow.png
        │  │          topbar_step_bg.png
        │  │
        │  ├─otherskins
        │  │  │  login.bmp
        │  │  │  login.xml
        │  │  │
        │  │  └─simisent
        │  │      │  default.js
        │  │      │  example-similar.html
        │  │      │  jquery.min.js
        │  │      │
        │  │      ├─css
        │  │      │      bg.png
        │  │      │      dict.css
        │  │      │      nav.png
        │  │      │      new-sprite.png
        │  │      │      OffLine.jpg
        │  │      │      s-search-.png
        │  │      │      s-search.png
        │  │      │      similar.css
        │  │      │
        │  │      └─images
        │  │              fangfa1.png
        │  │              fangfa2.png
        │  │
        │  ├─res
        │  │  │  fan.xml
        │  │  │  faq.html
        │  │  │  updater.xsl
        │  │  │
        │  │  ├─images
        │  │  │      image-q1-.gif
        │  │  │      image-q3-.gif
        │  │  │      image-q3-.gif
        │  │  │      laba1.gif
        │  │  │      title_back.gif
        │  │  │
        │  │  └─style
        │  │          global.css
        │  │          updater.css
        │  │
        │  ├─resultui
        │  │  │  commonfile.xsl
        │  │  │  defaultad.html
        │  │  │  exampleresult.xsl
        │  │  │  index.html
        │  │  │  index3.html
        │  │  │  instantresult.xsl
        │  │  │  miniresult.html
        │  │  │  miniresult.xsl
        │  │  │  property.ini
        │  │  │  pup.html
        │  │  │  queryresult.html
        │  │  │  result.xsl
        │  │  │  ss_dict.xsl
        │  │  │  strksrchresult.html
        │  │  │  verifycode.html
        │  │  │  wbblank.html
        │  │  │  wbbrowser.html
        │  │  │  wbfinish.html
        │  │  │  wbreview.html
        │  │  │  wbwelcome.html
        │  │  │  wikiresult.xsl
        │  │  │
        │  │  ├─css
        │  │  │      base.css
        │  │  │      bg-win7.jpg
        │  │  │      bg.jpg
        │  │  │      body-bg.png
        │  │  │      default.css
        │  │  │      loading.gif
        │  │  │      mini.css
        │  │  │      new-sprite.png
        │  │  │      pic-bg.png
        │  │  │      play.png
        │  │  │      stroke.css
        │  │  │
        │  │  ├─images
        │  │  │  │  back.png
        │  │  │  │  background.png
        │  │  │  │  cidian_aqurebutton_close.gif
        │  │  │  │  cidian_aqurebutton_open.gif
        │  │  │  │  cidian_point_empty.gif
        │  │  │  │  cidian_point_solid.gif
        │  │  │  │  confirm.png
        │  │  │  │  defaultAdv.jpg
        │  │  │  │  displaypoint.gif
        │  │  │  │  dont-remember.png
        │  │  │  │  earthpic.jpg
        │  │  │  │  forget-disable.png
        │  │  │  │  forget.png
        │  │  │  │  forget2.png
        │  │  │  │  graypoint.gif
        │  │  │  │  graypointpoint.gif
        │  │  │  │  loading.gif
        │  │  │  │  logo.gif
        │  │  │  │  logo.png
        │  │  │  │  mask.png
        │  │  │  │  newfeaturepic.gif
        │  │  │  │  next.png
        │  │  │  │  next2.png
        │  │  │  │  nomemtime.png
        │  │  │  │  nomemword.png
        │  │  │  │  nosound.GIF
        │  │  │  │  notebook-bg.png
        │  │  │  │  noword.png
        │  │  │  │  OffLine.jpg
        │  │  │  │  outlink.gif
        │  │  │  │  phonetic-down.png
        │  │  │  │  phonetic-hover.png
        │  │  │  │  phonetic.png
        │  │  │  │  pre.png
        │  │  │  │  pre2.png
        │  │  │  │  prev.png
        │  │  │  │  remember-disable.png
        │  │  │  │  remember.png
        │  │  │  │  remember2.png
        │  │  │  │  right-top-sprite.png
        │  │  │  │  sound.png
        │  │  │  │  submitbutton.gif
        │  │  │  │  voice.png
        │  │  │  │  voice.swf
        │  │  │  │  welcome-down.png
        │  │  │  │  welcome-hover.png
        │  │  │  │  welcome.png
        │  │  │  │
        │  │  │  └─NowWaiting
        │  │  │          IMG00000.bmp
        │  │  │          IMG00001.bmp
        │  │  │          IMG00002.bmp
        │  │  │          IMG00003.bmp
        │  │  │          IMG00004.bmp
        │  │  │          IMG00005.bmp
        │  │  │          IMG00006.bmp
        │  │  │          IMG00007.bmp
        │  │  │
        │  │  ├─index
        │  │  │  │  fan.xml
        │  │  │  │  index5.html
        │  │  │  │  lj5.html
        │  │  │  │  wiki5.html
        │  │  │  │
        │  │  │  ├─css
        │  │  │  │  │  index.css
        │  │  │  │  │
        │  │  │  │  └─index
        │  │  │  │          bg.jpg
        │  │  │  │          bg.png
        │  │  │  │          button.png
        │  │  │  │          button_toggle.png
        │  │  │  │          down.png
        │  │  │  │          hover.png
        │  │  │  │          index.png
        │  │  │  │          stroke-tips.png
        │  │  │  │
        │  │  │  ├─images
        │  │  │  │      .jpeg
        │  │  │  │      .jpeg
        │  │  │  │      baike.jpg
        │  │  │  │      examples.jpg
        │  │  │  │
        │  │  │  └─js
        │  │  │          all-min.js
        │  │  │
        │  │  └─js
        │  │          all-min.js
        │  │          wordBook.js
        │  │
        │  └─skins
        │      │  bg-win7.jpg
        │      │  default.css
        │      │  default.png
        │      │  defaultWin7.css
        │      │  popup.bmp
        │      │  wb.bmp
        │      │  win7-default.bmp
        │      │  win7-default.xml
        │      │  xp-default.bmp
        │      │  xp-default.xml
        │      │
        │      └─Loading
        │              IMG00000.bmp
        │              IMG00001.bmp
        │              IMG00002.bmp
        │              IMG00003.bmp
        │              IMG00004.bmp
        │              IMG00005.bmp
        │              IMG00006.bmp
        │              IMG00007.bmp
        │              IMG00008.bmp
        │              IMG00009.bmp
        │              IMG00010.bmp
        │              IMG00011.bmp
        │
        ├─Localdicts
        │      21EC.ydic
        │      basicCE.ydic
        │      basicEC.ydic
        │      CE.idx
        │      CE.ifo
        │      EC.idx
        │      EC.ifo
        │      newCE.ydic
        │      phrase.ydic
        │      sentenceDict.sql
        │
        └─Stable
            │  Acrobat2Dict.dll
            │  YDChromeTextExtractor.crx
            │  YoudaoGetWord32.dll
            │  YoudaoGetWord64.dll
            │
            └─extensions
                └─firefox
                    │  chrome.manifest
                    │  install.rdf
                    │  YDFFMiddleware.dll
                    │
                    └─chrome
                        └─content
                                getword.js
                                main.xul
                                

结构

发现一个以sql为后缀名的文件,一开始还以为是SQL脚本。但大小为:40.9MB,觉得不太可能了。即:"...\Dict\Application\Localdicts\sentenceDict.sql"

用UltraEdit打开(用记事本打开,内存小的话会卡住)

看到有关键字:SQLite format... 原来是SQLite类型的开源数据库。

SQLite,是一款轻型的数据库,是遵守ACID的关联式数据库管理系统,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。它能够支持Windows/Linux/Unix等等主流的操作系统,同时能够跟很多程序语言相结合,比如 Tcl、C#、PHP、Java等,还有ODBC接口,同样比起Mysql、PostgreSQL这两款开源世界著名的数据库管理系统来讲,它的处理速度比他们都快。SQLite第一个Alpha版本诞生于2000年5月。 至今已经有12个年头,SQLite也迎来了一个版本 SQLite 3已经发布。

官网:SQLite Home Page  http://www.sqlite.org/

使用 SQLlite Database Browser 打开:

可执行SQL语句:

可以看出,它包含的主要是句子内容,应该只是其中一个数据库,其它的本地数据库可能在同文件夹中的其他文件。

一点想法:

如果用winform写一个读取该文件的查询器,是否可以写个像词典的东西呢?

在有道词典程序文件夹发现一个后缀名为sql的数据库(SQLite)的更多相关文章

  1. 【应用】_有道词典客户端一个后缀名为sql的数据库。

    [缘起] 在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达140MB了,于是进去看看. 发现个有趣的文件:XXX.sql. 首先我们看一看它的安装文件夹的结构: Dict ...

  2. java实现批量修改指定文件夹下所有后缀名的文件为另外后缀名的代码

    java实现批量修改指定文件夹下所有后缀名的文件为另外后缀名的代码 作者:Vashon package com.ywx.batchrename; import java.io.File; import ...

  3. c# 控制台应用程序批量修改文件夹下的后缀名(包括子文件夹)

    using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Tex ...

  4. ASP.NET MVC - 探究应用程序文件夹

    为了学习 ASP.NET MVC,我们将构建一个 Internet 应用程序. 第 2 部分:探究应用程序文件夹. MVC 文件夹 一个典型的 ASP.NET MVC Web 应用程序的文件夹内容如下 ...

  5. Inno setup 卸载时删除程序文件夹(文件)

    Inno setup 卸载时删除程序文件夹(文件) //删除所有配置文件以达到干净卸载的目的 procedure CurUninstallStepChanged(CurUninstallStep: T ...

  6. ASP.NET MVC 4应用程序文件夹

    App_Start It has configuration classes to reduce clutter code in the Global.asax 它包含了配置类来减少在Global.a ...

  7. WIN7使用过360系统急救箱后出现的任务计划程序文件夹删除的办法

    直接进主题(怀疑系统有问题用了下360系统急救箱,用完后发现计划任务多了个360superkiller文件夹,右键直接是删除不了的) 尝试了各种方法都是不爽,突然想到计划任务不是在在系统盘下的一个文件 ...

  8. 动手动脑-------找出指定文件夹下所有扩展名为.txt和.java的文件

    思路:首先向获取文件,如果是文件的话,则判断它是否以".txt"或".java"结尾,如果是则输出它的路径.如果是文件夹的话,则需获取子文件,利用递归方法遍历子 ...

  9. JS截取后缀名,文件全名,非后缀名的方法---收藏(冷饭_)

    <script language="javascript" type="text/javascript"> //取整个文件的路径并且把文件名赋给文件 ...

随机推荐

  1. python核心编程2 第六章 练习

    6-2. 字符串标识符.修改例 6-1 的 idcheck.py 脚本,使之可以检测长度为一的标识符,并且可以识别 Python 关键字,对后一个要求,你可以使用 keyword 模块(特别是 key ...

  2. Mysql5.7.25在windows下安装

    在网上看到了很多安装方法,也试了很多,md,网上资源多了也是有各种坑,这里只说在windows下安装mysql5.7.25 一.下载安装包 链接:https://dev.mysql.com/downl ...

  3. 平衡二叉查找树 AVL 的实现

    不同结构的二叉查找树,查找效率有很大的不同(单支树结构的查找效率退化成了顺序查找).如何解决这个问题呢?关键在于如何最大限度的减小树的深度.正是基于这个想法,平衡二叉树出现了. 平衡二叉树的定义 (A ...

  4. Effective Approaches to Attention-based Neural Machine Translation(Global和Local attention)

    这篇论文主要是提出了Global attention 和 Local attention 这个论文有一个译文,不过我没细看 Effective Approaches to Attention-base ...

  5. 如何在nlp问题中定义自己的数据集

    我之前大致写了一篇在pytorch中如何自己定义数据集合,在这里如何自定义数据集 不过这个例子使用的是image,也就是图像.如果我们用到的是文本呢,处理的是NLP问题呢? 在解决这个问题的时候,我在 ...

  6. C语言实例解析精粹学习笔记——29

    题目: 将字符行内单字之间的空格平均分配插入到单字之间,以实现字符行排版.也就是输入一个英文句子,单词之间的空格数目不同,将这些空格数平均分配到单词之间,重新输出. 代码如下(是原书中配套的代码,只是 ...

  7. linux select用法

    select 是linux i/o 复用技术之一 man 2 select #include <sys/select.h> /* According to earlier standard ...

  8. 开放定址法——平方探测(Quadratic Probing)

    为了消除一次聚集,我们使用一种新的方法:平方探测法.顾名思义就是冲突函数F(i)是二次函数的探测方法.通常会选择f(i)=i2.和上次一样,把{89,18,49,58,69}插入到一个散列表中,这次用 ...

  9. Leetcode 606. 根据二叉树创建字符串

    题目链接 https://leetcode.com/problems/construct-string-from-binary-tree/description/ 题目描述 你需要采用前序遍历的方式, ...

  10. Servlet过滤器---简介

    过滤器的基本概念 Servlet过滤器从字面上的字意理解为经过一层次的过滤处理才达到使用的要求,而其实Servlet过滤器就是服务器与客户端请求与响应的中间层组件,在实际项目开发中Servlet过滤器 ...