Re: String builder (Parsing vertically presented records)



Hi,

You can use for that the DirectoryInfo class.

http://msdn2.microsoft.com/en-us/library/system.io.fileinfo.name(VS.80).aspx

However you have first to try it yourself while the sample is on that page
above how to use it.

A hint, put a textbox on your form and tell consequently textbox.show, which
is to paint the textbox new. This is often not found while it is well
described.

I hope this helps,

Cor

<ILCSP@xxxxxxxxxxx> schreef in bericht
news:1142402436.281029.69390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi again, I have one last question about this. Is there a way to
process a whole directory (folder) containing the raw survey data files
using this code?

What I would want is to check if the folder containing the survey text
files is not empty and if it's not, then get the first file's filename
(without the extension) store it in a variable and then use it to
create the name of the new string output file. The new file name would
equal the name of the original filename plus "strings.txt" They would
be saved in a separate folder. Then, after the first text file is
processed, the next one would be read and string read and so on.

I thinking also to pop up a message box telling the user the number of
files processed.

For example, if I have this file as the one to be read:
c:\surveys06\Survey01.txt

the outcome would be saved as this:
c:\SurveyStrings06\Survey01string.txt

and so on.

Thanks in advance.



.



Relevant Pages

  • Re: Imagebutton and filesystem
    ... In index write down DirectoryInfo - about DirectoryInfo class. ... "Aaron" wrote in message ... > I have two imagebuttons in my asp.net application. ... > aforementioned folder. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: How to create hidden property directory?
    ... Dim dir As New System.IO.DirectoryInfo ... To create a hidden folder, you can use DirectoryInfo class as follows: ... you can use the code in a Try-Catch block and handling ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Get files in the current folder and in the sub-folders
    ... For that is the DirectoryInfo class, in this link is more than only the ... Cor ... > I'd like to know how to get the files in the current folder as well as in ... > the sub-folders? ...
    (microsoft.public.dotnet.languages.vb)