Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 482195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:04:18+00:00 2026-05-13T01:04:18+00:00

I am looking for the best solution for custom file parsing for our enterprise

  • 0

I am looking for the best solution for custom file parsing for our enterprise import routines. I want to basically change one file format into a standard file format and have one routine that imports that data into the database. I need to be able to create custom scripts for each client since its difficult to get the customer to comply with a standard or template format. I have looked at PowerShell and Iron Python to do this so far but I am not sure this is the route I want to go. I have also looked at some tools such as Talend which is a drag and drop style tool which may or may not give me what I want as far as flexibility. We are a .NET shop and have created custom code to do this in the past but I need something that is quicker to create then coding custom parsing functions each time we get a new file format in.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:04:18+00:00Added an answer on May 13, 2026 at 1:04 am

    Python is wonderful for this kind of thing. That’s why we use. Each new customer transfer is a new adventure and Python gives us the flexibility to respond quickly.


    Edit. All python scripts that read files are “custom file parsers”. Without an actual example, it’s not sensible to provide a detailed example.

    with open( "some file", "r" ) as source:
        for line in source:
            process( line )
    

    That’s about all there is to a “custom file parser”. If you’re parsing .csv or .xml files, then Python has modules for that. If you’re parsing fixed-format files, you’d use string slicing operations. If you’re parsing other files (X12? JSON? YAML?) you’ll need appropriate parsers.

    Tab-Delim.

    from collections import namedtuple
    RecordLayout = namedtuple('RecordLayout',['field1','field2','field3',...])
    def process( aLine ):
        record = RecordLayout( aLine.split('\t') )
        ...
    

    Fixed Layout.

    from collections import namedtuple
    RecordLayout = namedtuple('RecordLayout',['field1','field2','field3',...])
    def process( aLine ):
        fields = ( aLine[:10], aLine[10:20], aLine[20:30], ... )
        record = RecordLayout( fields )
        ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for your best solutions for creating a new message instance based on
I am looking for best practices for detecting and preventing DOS in the service
I'm looking for best practices for establishing connections between Oracle 8 and Visual Studio
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main
I'm looking for best practices for using the same data in different places without
I am looking for best practices in regards to printing from a WinForms application.
I'm looking for best-practices for designing a site that with accessibility in mind. The
I am looking for the best method to run a Java Application as a
I'm looking for the best method to parse various XML documents using a Java
I'm looking for the best way to log errors in an ASP.NET application. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.