Colleagues,
the VFP has function FORCEEXT(cFile). For instance:
- You have a file, say, cFile = "C:\Test\MyFile.TXT"...
- ... and there also should be file C:\Test\MyFile.XML
- You can check the presence of that latter file by
Essentially, this VFP function does exactly what it's name suggests: forced the file's extension to change to the given one. And my question is:
Is there any equivalent of this (very helpful) function in VB .NET? Or it's "roll 'er own, pal"?
(I tried to find similar method in the File, Path and even Directory classes - nada!)
TIA!
Regards,
Ilya
the VFP has function FORCEEXT(cFile). For instance:
- You have a file, say, cFile = "C:\Test\MyFile.TXT"...
- ... and there also should be file C:\Test\MyFile.XML
- You can check the presence of that latter file by
Code:
IF FILE(FORCEEXT(cFile, "XML")
...
ENDIF
Essentially, this VFP function does exactly what it's name suggests: forced the file's extension to change to the given one. And my question is:
Is there any equivalent of this (very helpful) function in VB .NET? Or it's "roll 'er own, pal"?
(I tried to find similar method in the File, Path and even Directory classes - nada!)
TIA!
Regards,
Ilya