Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!csd4.csd.uwm.edu!chad From: chad@csd4.csd.uwm.edu (D. Chadwick Gibbons) Newsgroups: comp.sys.ibm.pc.programmer Subject: splitting up filename components Summary: is there a MSC equivalent of Turbo Pascal's FSplit? Keywords: FSplit Message-ID: <4173@uwm.edu> Date: 28 May 90 00:34:34 GMT Sender: news@uwm.edu Reply-To: chad@csd4.csd.uwm.edu (D. Chadwick Gibbons) Distribution: na Organization: University of Wisconsin-Milwaukee Lines: 17 Take, for example, the problem of a program which accepts a file specification as one of its parameters. The file specification does not necessarally have to include the current directory. If so, using DOS's find-first/next routines will determine if file exists, but does not give a true file name. In Turbo Pascal, the FSplit takes as an argument a file path and will return the three components of this path: the directory, file name, and file extension. Does such a routine exist in MSC? The run-time library routines do not appear to have such a routine. What about a built-in DOS function? Again, I have checked several sources of documentation, and none appeared to have such a routine listed. I'm sure I could easily scan the path string for the arguments I need and build my own routine, but I would prefer to use any existing routines, in order to keep my code size down to a minimum.