Advertisement

12.30.2006 at 11:41AM PST, ID: 22106927
[x]
Attachment Details

Bacth File: Read a file line by line

Asked by sudhakar_koundinya in MS DOS

Tags: line, file, dos, read, bacth

Dear All,
My Advanced wishes for New Year 2007.

I have written the below code to read each line in a file. But if there is a space, it is considering first word of line only. So what I have understand is it is considering space as delimiter. Now my question is how to read total line? What changes do I need to do in the below snippet?

@echo off
FOR /F   %%a IN (c:\files.txt) do echo %%a


Thanks
SudhakarStart Free Trial
[+][-]12.30.2006 at 11:44AM PST, ID: 18219618

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS DOS
Tags: line, file, dos, read, bacth
Sign Up Now!
Solution Provided By: leew
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.30.2006 at 11:54AM PST, ID: 18219635

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32