缘起

在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达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. 概述「DAG加边至强连通」模型&&luoguP2746校园网Network of Schools

    模型概述 有一DAG,问最少加多少条边能够使图强连通. 题目描述 一些学校连入一个电脑网络.那些学校已订立了协议:每个学校都会给其它的一些学校分发软件(称作“接受学校”).注意即使 B 在 A 学校的 ...

  2. 【经典问题】bzoj2957: 楼房重建

    经典问题:动态维护上升子序列长度 进阶问题:[经典问题]#176. 栈 Description 小A的楼房外有一大片施工工地,工地上有N栋待建的楼房.每天,这片工地上的房子拆了又建.建了又拆.他经常无 ...

  3. thinkphp centos7 报class POD not found

    没有安装PDO yum install php70w-pdo yum install php70w-mysqlnd 两条命令搞定

  4. laravel 安装excel扩展

    1,使用Composer安装依赖 在Laravel项目根目录下使用Composer安装依赖: composer require maatwebsite/excel ~2.1 ps:一定要加上~2.1! ...

  5. php解决sql_server连接问题

    1.首先根据phpinfo()查看当前php版本以及线程安全情况(ts或者nts):2.下载sqlsrv扩展(适用32位php) 下载链接为https://www.microsoft.com/en-u ...

  6. Codeforces Round #428 (Div. 2) C. dfs

    C. Journey time limit per test 2 seconds memory limit per test 256 megabytes input standard input ou ...

  7. 02,Python网络爬虫第二弹《http和https协议》

    一.HTTP协议 1.官方概念: HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文 ...

  8. 19,Ubuntu安装之python开发

      什么??公司要用Ubuntu(乌班图)?不会用??怎么进行python开发??? 乌班图操作系统下载地址:http://releases.ubuntu.com/18.04/ubuntu-18.04 ...

  9. Android开发——View滑动冲突解决方案

    0. 前言   我们在Android开发--事件分发机制详解中深入学习了事件分发机制,为我们解决Android开发中的滑动冲突问题做了初步准备.针对滑动冲突这里给出两种解决方案:外部拦截法和内部拦截法 ...

  10. linux驱动学习_1

    目前项目需要,需要做linux驱动了,记录一下 学习驱动,大家一定都会写一个hello world代码,网上也有很多范例,但是记录一下遇到的问题. 1.make之后,使用insmod加载,终端没有打印 ...