🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #526

splitting up filename components

#526
From: D. Chadwick Gibbons
Date: Mon, 28 May 1990 00:34
17 lines
1423 bytes
	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.
Technical Details
Message-ID: <4173@uwm.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!csd4.csd.uwm.edu!chad

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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