|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Very large stringI'm reading the response to the DOS "FIND" command into a string. Until
now it has worked just fine. Now it's returning so much data that the string seems to be full. Here's a snippet of the last few lines: ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22845.XML: 0 ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22851.XML: 0 ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\ How much can a string hold? Will a StringBuilder hold more? How would I use a string builder in this case? Thanks. *** Sent via Developersdex http://www.developersdex.com *** Hello Terry,
Speaking out my ass here, so be sure to research what I say.. But I believe the string data type is limited in capacity only by the amount of available memory. However, strings are immutable.. so modifying them, especially large ones, is quite expensive. A string builder will certainly increase the speed with wich you can modify strign contents. Looking up string builder in the MSDN docs will get you started in their use. -Boo Show quoteHide quote > I'm reading the response to the DOS "FIND" command into a string. > Until now it has worked just fine. Now it's returning so much data > that the string seems to be full. Here's a snippet of the last few > lines: > > ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22845.XML: 0 > ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22851.XML: 0 > ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\ > > How much can a string hold? Will a StringBuilder hold more? How would > I use a string builder in this case? > > Thanks. > > *** Sent via Developersdex http://www.developersdex.com *** > As addition to Boo,
And therefore will a sentence as A = A Direct a memory overflow as A is longer than half of the memorysize (as long as this inside the 2Gb area of course in 32Bit systems). Just something I was thinking of reading Boo's message. Cor Show quoteHide quote "GhostInAK" <ghosti***@gmail.com> schreef in bericht news:c71747b42cd298c8910b6c1ba5f6@news.microsoft.com... > Hello Terry, > > Speaking out my ass here, so be sure to research what I say.. But I > believe the string data type is limited in capacity only by the amount of > available memory. However, strings are immutable.. so modifying them, > especially large ones, is quite expensive. A string builder will > certainly increase the speed with wich you can modify strign contents. > > Looking up string builder in the MSDN docs will get you started in their > use. > > -Boo > >> I'm reading the response to the DOS "FIND" command into a string. >> Until now it has worked just fine. Now it's returning so much data >> that the string seems to be full. Here's a snippet of the last few >> lines: >> >> ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22845.XML: 0 >> ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\DATA\BEX22851.XML: 0 >> ---------- C:\PROGRA~1\VERITAS\BACKUP~1\NT\ >> >> How much can a string hold? Will a StringBuilder hold more? How would >> I use a string builder in this case? >> >> Thanks. >> >> *** Sent via Developersdex http://www.developersdex.com *** >> > > Terry Olsen wrote:
> I'm reading the response to the DOS "FIND" command into a string. Until <snip>> now it has worked just fine. Now it's returning so much data that the > string seems to be full. Here's a snippet of the last few lines: How do you build the string? Regards, Branco. Using the Tivoli RemoteExec service on the remote server. I connect via TCP,
send the DOS command, and the response is returned. Like so: dim str as string str = RmtExec.Send("FIND /C /I "Text to find" c:\directory\*.xml) Show quoteHide quote "Branco Medeiros" <branco.medei***@gmail.com> wrote in message news:1155954827.721199.191970@m73g2000cwd.googlegroups.com... > > Terry Olsen wrote: >> I'm reading the response to the DOS "FIND" command into a string. Until >> now it has worked just fine. Now it's returning so much data that the >> string seems to be full. Here's a snippet of the last few lines: > <snip> > > How do you build the string? > > Regards, > > Branco. >
Late Binding Issue
string reset? why? how? Decimal Degrees to DMS Need some advice? What is the .NET way? - Right("0" & Now.Month.ToString, 2) HTTPS And VB.Net Apps Concurrency violation: the DeleteCommand affected 0 records vb.net Web Service using stored procedures example? Basic multithreading problem Form grid |
|||||||||||||||||||||||