
delphi
、VB、VC等等编程类软件都可以打开的。但显示的数据方式不一定一样。
手上没有这些软件的话,试试office里的access。
有些专用软件DB数据是加密不公开的,普通方式还无法打开。
你是不是想看看QQ目录中的QQglobal.db文件里有什么?那里面没啥东西的
跟他的聊天室、搜索、短信等功能有相关。所以是加密的。又没什么特别文件。普通的编程工具无法读取的。使用winhex和UE等可基本判断内容。
另外提醒,乱动数据库文件会使你已经正常使用软件可能发生故障。
这个可以在每次应用开启时检测database文件夹下是否有这个名称的数据库,如果没有就从asserts中获得释放一次,给你看一下我的代码:
我的asserts里有一个文件叫做:address.db
/***在onCreate()方法中调用
*/
private File initDatabase (){
BufferedInputStream bis = null
BufferedOutputStream bos = null
File file = getDatabasePath("address.db")
byte [] buffer = new byte[1024]
int c
try {
if (!file.exists())
file.getParentFile().mkdirs()
else
return file
bis = new BufferedInputStream(getAssets().open("address.db"))
bos = new BufferedOutputStream(new FileOutputStream(file))
while ((c = bis.read(buffer)) != -1)
bos.write(buffer, 0, c)
} catch (IOException e) {
e.printStackTrace()
return null
}finally{
try {
if (bis != null)
bis.close()
if (bos != null) {
bos.close()
bos.flush()
}
}catch (IOException e){
e.printStackTrace()
}
}
return file
}
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)