Re: String builder (Parsing vertically presented records)
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Wed, 15 Mar 2006 07:34:08 +0100
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.
.
- Follow-Ups:
- Re: String builder (Parsing vertically presented records)
- From: Cerebrus
- Re: String builder (Parsing vertically presented records)
- References:
- Re: String builder (Parsing vertically presented records)
- From: Cerebrus
- Re: String builder (Parsing vertically presented records)
- From: Cor Ligthert [MVP]
- Re: String builder (Parsing vertically presented records)
- From: Cor Ligthert [MVP]
- Re: String builder (Parsing vertically presented records)
- From: Cor Ligthert [MVP]
- Re: String builder (Parsing vertically presented records)
- From: Cerebrus
- Re: String builder (Parsing vertically presented records)
- Prev by Date: Re: I miss loop
- Next by Date: Re: what should i use?
- Previous by thread: Re: String builder (Parsing vertically presented records)
- Next by thread: Re: String builder (Parsing vertically presented records)
- Index(es):
Relevant Pages
|