in reply to Re: how to identify a fixed width file
in thread how to identify a fixed width file
1) I do recognise XML, CSV etc already, the problem is with fixed width. 2) The formats mentioned are not text files so are of no relevance. 3) I'd rather not punt if possible, tho it seems I may have to. My code atm uses File::MMagic to get the mime type. If it's a text file I then work out what sort of text file it is ie 1) XML - uses mmagic and XML::LibXML 2) SAIFFE - regex 3) EDIFACT - regex 4) Tradacoms - regex 5) CSV - Text::CSV_XS 6) Fixed width - foobar
|
|---|