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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:21:23+00:00 2026-06-14T19:21:23+00:00

I have a multiple line file (about 300 – 400 lines) each line has

  • 0

I have a multiple line file (about 300 – 400 lines) each line has 72 characters and i need that transformed into a single line.

Any ideas ?

  • 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-06-14T19:21:24+00:00Added an answer on June 14, 2026 at 7:21 pm

    This is possible, assuming you want your concatenated line in one line in a text file. However, even though you can create the long line with batch, you will not be able to read the line using batch. As Electro Hacker says, you cannot create a batch environment variable longer than 8191 bytes long.

    XP SET /P will preserve leading spaces from each line. But SET /P on Vista and beyond strips leading spaces.

    This solution adds a space between each concatenated line.

    @echo off
    setlocal
    set "infile=test.txt"
    set "outfile=out.txt"
    
    >"%outfile%" (
      for /f usebackq^ delims^=^ eol^= %%A in ("%infile%") do <nul set /p "=%%A "
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php application that has about 50-55 code files. The file that
I have a file that has over 200 lines in this format: name old_id
I want to Draw multiple line Graph with each line have different color and
I have a client that has multiple Wordpress installations, which he didn't keep up
I have a big JSON file, formatted over multiple lines. I want to find
I have multiple WCF services that share some data contracts and need to generate
I have a configuration file that has variables and value separate by spaces. I
I have multiple ajax requests with javascript code as response, and I need to
I am parsing a text file and I get multiple lines in the form
I have 75+ different text files containing some lines of dialogue spoken by characters

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.