
open txt file and read strings
Quote:
> I am trying to write a simple console application using
> vb .net 2002.
> I want to open a text file which was generated using
> hyperteminal and it contains lines of text with some
> numerical data.
> Then I need to manipulate the strings (line by line) to
> extract the numerical data.
> My question is:
> How can I open this file? I tried the open command but the
> editor tells me it is part of the windows.visualbasic
> namespace.
> When I put this in the reference list and put the line
> IMPORTS WINDOWS.VISUALBASIC in my code it still does not
> recognize the open command. Also the imports command is
> not valid.
> What do I do wrong? Is this the way to go or do I need
> some other way to open the file to get my data?
I haven't heard of WINDOWS.VISUALBASIC. There's only Microsoft.VisualBasic,
but it's already part of the list of imported names for new projects, so you
don't have to add it.
Have a look at:
ms-help://MS.VSCC/MS.MSDNVS/vbcn7/html/vbconFolderFileProcessing.htm
--
Armin