N
nooria
1. How do you find out the length of the following GStrings?
GString FilePath [] = {"UnSigned\\EF.DG1", "UnSigned\\EF.DG2",
"UnSigned\\EF.DG3", "UnSigned\\EF.DG4", "UnSigned\\EF.DG5"};
I know the length is 5 but I like to find out dynamically. For example,
I want to use that GString in a for loop.
for (int i =0; i<(I want to put the length of the file Path here); i++){
}
2. How can you search a directory to see how many files with what kind
of extensions are in that directory?
For example, I have the following directory c:\myapp; I don't know how
many files are there or with what extensions.
Thanks in advance
GString FilePath [] = {"UnSigned\\EF.DG1", "UnSigned\\EF.DG2",
"UnSigned\\EF.DG3", "UnSigned\\EF.DG4", "UnSigned\\EF.DG5"};
I know the length is 5 but I like to find out dynamically. For example,
I want to use that GString in a for loop.
for (int i =0; i<(I want to put the length of the file Path here); i++){
}
2. How can you search a directory to see how many files with what kind
of extensions are in that directory?
For example, I have the following directory c:\myapp; I don't know how
many files are there or with what extensions.
Thanks in advance