School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 357,969 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,561 people online right now.Registration is fast and FREE... Join Now!



index.dat

52 Weeks of Code Challenge:Android

Week #11 of the 52 Weeks of Code Challenge is Android, you should give it a shot. Click Here!
Page 1 of 1

index.dat Rate Topic: -----

#1 paul_so40  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 15-April 09


Dream Kudos: 0

Post icon  Posted 19 April 2009 - 03:58 PM

Hello all,

Ok so ive dug round the internet hunting for the un-findable

i have a listveiw called lv

what i want is to be able to list the contents of index.dat file in "lv"

Is this possible?

ive dug round the internet and all i can find is "free download softwares" and "history cleaners exe"

im looking for the source, anyone got an idea of what the code would be?

For those that dont know,

Quote

In the Microsoft Windows operating system, index.dat is a file used by the Internet Explorer web browser. Index.dat files are hidden files on your computer that contain all tracks of your online activity, where have you been on internet, what sites you visited, list of URLs, files and documents you recently accessed. Index.dat files stored on your computer are obviously a potential privacy threat as they can be found and viewed without your knowledge.


Any help would be great.

This post has been edited by paul_so40: 19 April 2009 - 04:03 PM

Was This Post Helpful? 0
  • +
  • -


#2 paul_so40  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 15-April 09


Dream Kudos: 0

Re: index.dat

Posted 20 April 2009 - 06:27 AM

anyone think this is possible?
Was This Post Helpful? 0
  • +
  • -

#3 Ian2009  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 7
  • View blog
  • Posts: 31
  • Joined: 07-April 09


Dream Kudos: 0

Re: index.dat

Posted 20 April 2009 - 07:25 AM

View Postpaul_so40, on 20 Apr, 2009 - 06:27 AM, said:

anyone think this is possible?

I am not familiar with index.dat but when i open it in notepad, all the URLs are in plain text. So you can just read in the file and use regular expression to match the URLs then add them to your ListView. If you need more info, of course you need to know the structure of the file and then read it in binary format.
Was This Post Helpful? 0
  • +
  • -

#4 paul_so40  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 15-April 09


Dream Kudos: 0

Re: index.dat

Posted 20 April 2009 - 08:25 AM

View PostIan2009, on 20 Apr, 2009 - 07:25 AM, said:

View Postpaul_so40, on 20 Apr, 2009 - 06:27 AM, said:

anyone think this is possible?

I am not familiar with index.dat but when i open it in notepad, all the URLs are in plain text. So you can just read in the file and use regular expression to match the URLs then add them to your ListView. If you need more info, of course you need to know the structure of the file and then read it in binary format.


Yea that seems to make sence.

Have you got an example code?

still looking for one. . . getting know were

all i could find for reading a binary file is this

Dim binReader As New BinaryReader(File.OpenRead("c:\myfile.dat")) str = binReader.ReadString() num = binReader.ReadInt32() binReader.Close()

Was This Post Helpful? 0
  • +
  • -

#5 Ian2009  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 7
  • View blog
  • Posts: 31
  • Joined: 07-April 09


Dream Kudos: 0

Re: index.dat

Posted 20 April 2009 - 09:11 AM

View Postpaul_so40, on 20 Apr, 2009 - 08:25 AM, said:

View PostIan2009, on 20 Apr, 2009 - 07:25 AM, said:

View Postpaul_so40, on 20 Apr, 2009 - 06:27 AM, said:

anyone think this is possible?

I am not familiar with index.dat but when i open it in notepad, all the URLs are in plain text. So you can just read in the file and use regular expression to match the URLs then add them to your ListView. If you need more info, of course you need to know the structure of the file and then read it in binary format.


Yea that seems to make sence.

Have you got an example code?

still looking for one. . . getting know were

all i could find for reading a binary file is this

Dim binReader As New BinaryReader(File.OpenRead("c:\myfile.dat")) str = binReader.ReadString() num = binReader.ReadInt32() binReader.Close()


VS IDE has an Insert Snippet feature (right click from Code View), where you can find simple code snippets like this:
' to read binary file
Dim fileContents As Byte()
fileContents = My.Computer.FileSystem.ReadAllBytes("C:\Test.txt")


If the file you are dealing with is too large, you will want to read in chunks: such as Read(myArray, 0, 1000)
If you know the record structure, you can use ReadSingle(), ReadString(), ReadInt32() and read content into variables directly

check out the example code from MSDN: http://msdn.microsof...naryreader.aspx

Hope it helps and good luck.

This post has been edited by Ian2009: 20 April 2009 - 09:13 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month