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 6624721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:41:16+00:00 2026-05-25T21:41:16+00:00

I am having an issue with preparing a text file for one of our

  • 0

I am having an issue with preparing a text file for one of our vendors. They are having problems reading the file; according to what I was told, the file must be in “80 byte wrapped format”. I believe they are using a mainframe system so I’m sure it has something to do with that.

When I created the file, I just used a simple StreamWriter with WriteLine() to do it, but if anyone has heard of this issue before, I could use some advice or a short code snippet on what I would need to do differently/add to accomdate their request.

Thanks for any help that you can provide.

  • 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-25T21:41:17+00:00Added an answer on May 25, 2026 at 9:41 pm

    That brings back memories (of COBOL, EDI and other uglyness).

    That usually means that each “record” is terminated with an 0x0d+0x0a (CRLF) or 0xa (LF) on it’s own which translate to the following code:

    writer.Write("{0}\r\n", record);
    writer.Write("{0}\n", record);
    

    Do not use writer.WriteLine. In the case of 80 byte wrapped format, it depends on the vendor. It usually means that “a record” should be max 80 bytes (inclusive of the CRLF chars) otherwise it’ll blow up the input buffer on the mainframe.

    Hoever, I would approach the company and ask them to provide a specification of the format they require precisely so there is no ambiguity. They should be able to either provide this or point you to the relevant vendor’s documentation on the file format.

    You will also probable require a specific encoding i.e. ASCII or EBCDIC if you are unlucky.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an issue with traversing in jQuery.. hopfully an easy one..but I'm banging my
Iam work on full text search build out. Im having issue on how to
I'm having issue with Action Listener of a JTable that being updated according the
Having an issue with one my scripts. The animation keeps queueing up. I have
Having issue with my navigation. How can I prevent it? My CSS file looks
Im having issue with mail sending In web.config file <mailSettings> <smtp from=xxxx@companyname.com> <network host=mail.authsmtp.com
I am having issue with loading a html textarea via ajax, essentially the text
I had WPF ListView in my xaml file and having issue to multiselect rows
I having issue that content assistant / intellisense is working in methods such as
i am having issue with loading my selector via a jquery ajax load call

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.