home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,406 of 42,547   
   foxidrive to Kerr Mudd-John   
   Re: find the longest line in a text file   
   03 Dec 15 06:18:45   
   
   From: foxidrive@server.invalid   
      
   On 3/12/2015 02:13, Kerr Mudd-John wrote:   
   > On Wed, 02 Dec 2015 14:54:35 -0000, Ammammata    
   > wrote:   
   >   
   >> I have a text file, about 860,000 lines: I need to know the lenght of the   
   >> longest line   
   >>   
   >> can I do it with a batch? I'm using Windows7   
   >>   
   > No that's far too big. use C.   
      
   I'm not sure why you say that - as you can't tell by the number of lines.  :)   
   If the longest line is over 8 KB then vanilla batch may baulk.   
      
   Other solutions exist that batch files can use to get the max line length.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca