Can Java read or utilize Perl DBM Files( .pag & .dir )
1 posts in topic
Flat View  Flat View

Posted By:   Mike_Godfrey
Posted On:   Friday, January 11, 2002 11:52 AM

Is it possilbe for Java to read Perl DBM files.

I have a bunch of PERL created DBM files. These files have a ".pag" & ".dir" extention to them.

I was wondering if there is any way I can have Java read these files. And utilize them like perl does.



Re: Can Java read or utilize Perl DBM Files( .pag & .dir )

Posted By:   David_Saintloth  
Posted On:   Monday, January 14, 2002 12:42 PM

Because java can be made to read byte level information from files, its possible to read any file so long as you know the byte encoding used for that file type. You would first need to take a look at the .pag and .dir files. Are they text "type" files? Or are they binary in nature? In which of these two ways are they "read" by PERL??? Once you know this you can proceed with creating methods that either read text files or read binary files according to the byte encoding structure used. You can even convert from binary to character encoding if you wish. I've listed a collection of fileread/write(textfiles) and dataread/write(any file) methods in response to THIS post in case you want to see code.

Let me know if this was usefull to you.



About | Sitemap | Contact