缘起

在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达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. myeclipse从SVN上拉项目,各种报错,jar包没有引入

    问:项目中myeclipse从SVN上拉项目,各种报错,jar包没有引入 答: 从SVN拉项目步骤一定不能出错,一有点差异就会出非常多的事情 1-右键项目checkout的时候 第一页选默认值就行 点 ...

  2. php获取设备的宽度和高度

    php获取设备的宽度和高度 如果前台没有传输当前请求的宽度和高度,我们有时候需要用php借助javascript获取屏幕的宽和高,以控制现实的样式. 代码如下: <?php /* * 获取设备宽 ...

  3. 笔记--tslib 编译

    tslib 是qt启动时的一个触屏校正检验程序. 它的配置以及编译比较简单. 第一步, 下载tslib源码包: http://download.csdn.net/detail/MKNDG/329156 ...

  4. Educational Codeforces Round 37 E. Connected Components?(图论)

    E. Connected Components? time limit per test 2 seconds memory limit per test 256 megabytes input sta ...

  5. js过滤和包含数组方法

    let data=[{'Linda':'apple'},{'Linda':'pear'},{'Linda':'apricot'},{'Linda':'peach'},{'Linda':'grape'} ...

  6. Echarts 背景渐变柱状图

    var dom = document.getElementById("container"); var myChart1 = echarts.init(dom); var app ...

  7. Oozie 实战之 shell

    说明:使用 shell action 执行 shell 脚本 hive-select-test.sh 来通过已经配置好的 Hive -f 来执行 HQL 查询脚本文件 select.sql 1.创建脚 ...

  8. Struts2---配置文件讲解及简单登录示例

    bean 用于创建一个JavaBean实例 constant 用于Struts2默认行为标签 <!-- 配置web默认编码集,相当于HttpServletRequest.setChartacte ...

  9. PowerShell脚本授权最佳实践

    [TechTarget中国原创] Windows PowerShell已成为微软在Windows Server上提供的首选管理界面.因为深度整合到Windows Server操作系统,PowerShe ...

  10. Delphi中的关键字与保留字

    Delphi中的关键字与保留字 分类整理 Delphi 中的“关键字”和“保留字”,方便查询 感谢原作者的收集整理! 关键字和保留字的区别在于,关键字不推荐作标示符(编译器已经内置相关函数或者留给保留 ...