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,408 of 42,547   
   Kerr Mudd-John to All   
   Re: find the longest line in a text file   
   03 Dec 15 12:57:34   
   
   From: admin@127.0.0.1   
      
   On Wed, 02 Dec 2015 19:18:45 -0000, foxidrive    
   wrote:   
      
   > 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.   
   >   
   Sorry, I was being a grump; it looked like a "do my homework for me" post.   
      
   --   
   Bah, and indeed, Humbug   
      
   --- 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