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,404 of 42,547   
   Todd Vargo to foxidrive   
   Re: find the longest line in a text file   
   02 Dec 15 22:59:23   
   
   From: tlvargo@sbcglobal.netz   
      
   On 12/2/2015 2:18 PM, 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.   
   >   
      
   Also, since the contents of said file are unknown, it is recommended to   
   pursue those other solutions to avoid much heartache. :)   
      
   --   
   Todd Vargo   
   (Post questions to group only. Remove "z" to email personal messages)   
      
   --- 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