EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: dat to csv file  (Read 4529 times)

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
dat to csv file
« on: 28 September 2016, 18:34 »

Is it possible to convert a dat file to a cvs file with tables using clrmamepro i.e.

Rom Name | Size | CRC32 | MD5 | SHA1
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
Re: dat to csv file
« Reply #1 on: 28 September 2016, 18:43 »

Since a dat is a xml file you can use a xslt template to perfom whatever you want to....even exporting to a textfile.

CMPro does not offer this.
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Linux Linux
  • Browser:
  • Chrome 53.0.2785.124 Chrome 53.0.2785.124
    • View Profile
Re: dat to csv file
« Reply #2 on: 28 September 2016, 19:55 »

Thank you for the quick reply. I'm not familiar with xslt do you know of any tutorials I could reference to help me accomplish converting dat files to tables?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
Re: dat to csv file
« Reply #3 on: 28 September 2016, 20:08 »

Sorry...no, not at the moment.
May I ask what the purpose is? It's pretty uncommon to have it as csv (especially without any set reference).
To load it into a database? Common DBs usually allow storing clobs and oracle etc allow xml queries...
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Linux Linux
  • Browser:
  • Chrome 53.0.2785.124 Chrome 53.0.2785.124
    • View Profile
Re: dat to csv file
« Reply #4 on: 28 September 2016, 21:06 »

It's nothing fancy and im probably over complicating work for myself but my thought is to import data from dat files into a spreadsheet to keep track of the following

1. Which roms i have in my set
2. Which roms im excluding from my set

I try to only have 1 rom per game but cant just select US or Europe roms since some were released exclusively in only one region so I was going through each set and selecting which roms to keep.

The problem occurs when a new dat file is released, how do I know what new games were added. Depending on the system, the miss list would be very large due to me only keeping one rom per game so it would be hard to identify what new games were added.

So my plan was to export the data to a table in a spreadsheet use a compare function to look at the crc32 values and indicate any new games that aren't already listed in the previous dat file.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
Re: dat to csv file
« Reply #5 on: 28 September 2016, 21:14 »

cmpro got a rename wizard which compares 2 dats (profiler->rename wizard)....not used it in years...but it may help you a bit
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
Re: dat to csv file
« Reply #6 on: 30 September 2016, 03:54 »

That actually works perfect, thank you!
Logged
Pages: [1]   Go Up
 

Page created in 0.368 seconds with 20 queries.

anything