Re: String builder (Parsing vertically presented records)



You needs some imports in the top of your program

imports system.text
imports system.io

Or put that text and io before where that streamreader and stringbuilder are
used.
text.stringbuilder

Cor

<ILCSP@xxxxxxxxxxx> schreef in bericht
news:1142355448.206036.310140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi again, thanks for replying.

I'm trying Cerebrus code right now, but when I debug I get these
errors:

Name 'sb' is not declared
Type 'FileStream' is not defined
Type 'StreamReader' is not defined

Am I missing something since these FileStream and StreamReader names
don't seem to be recognized by VB? Does the variable "sb" actually is
meant to be "sr" or is it for the text box?

I'm running VB.net version 2003.

The third and all subsequent records do have the "NewRegID" so that's
not a problem.

Thanks.



.



Relevant Pages

  • Re: Zeile lesen
    ... Imports System.IO ... Dim sr As StreamReader = _ ... Do While sr.Peek> -1 ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • RE: Replace Characters In Text File
    ... I think we also need to use the StreamReader to read the file,because the ... Imports System.IO ... Sub Main ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Print job from windows Forms
    ... Ivan Jericevich schreef: ... What am I missing? ... StreamReader is short for System.IO.StreamReader... ... Or you could Imports System.IO... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Reading file every 1 second
    ... Use a FileStream and decorate it with a StreamReader: ... I think the third party vendor give the access, ... string sLN; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: unbuffered file IO?
    ... in an unbuffered manner? ... Since StreamReader and FileStream both buffer data, you can't equate the BaseStream.Position with the data you're reading from the stream. ...
    (microsoft.public.dotnet.languages.csharp)

Loading