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,409 of 42,547   
   Dr J R Stockton to All   
   Re: find the longest line in a text file   
   03 Dec 15 11:05:03   
   
   From: reply1500@merlyn.demon.co.uk.invalid   
      
   In alt.msdos.batch message , Wed, 2 Dec 2015 14:54:35, Ammammata    
   posted:   
      
   >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   
      
   For that sort of thing, consider using JavaScript or VBScript running in   
   Windows Script[ing] Host at the command line or using a local HTA "web"   
   page in MS IE.   
      
   Two advantages :   
   (1) one knows that the languages are capable of handling all reasonable   
   tasks, and many others,   
   (2a) one may already know those or similar languages,   
   (2b) and [increased] knowledge of them may later be useful.   
      
   If speed matters, consider using a compiled high level language.   
      
   The answer may depend on knowing the greatest possible length and the   
   character size (in bits); for example, ordinary Borland Pascal strings   
   cannot exceed 255 8-bit characters.   
      
   --   
    (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.   
    Merlyn Web Site <                       > - FAQish topics, acronyms, & links.   
      
   --- 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