SharpAffair
SharpAffair

Reputation: 5488

Get filename from full path in Pascal

I'm wondering how to get a file name from full path in Pascal.

In .NET, we have two functions - Path.GetFileName and String.IndexOf, both of them allow to accomplish the task.

For example, "C:\docs\file.txt" will return "file.txt".

What would be the Pascal equivalent?

Upvotes: 0

Views: 2241

Answers (1)

user532231
user532231

Reputation:

It is the ExtractFileName function. Thanks to Ken's comment.

Upvotes: 1

Related Questions