Remove Quotes From String

A Delphi function that will remove enclosing and double quotes from quoted text, useful for reading CSV data.

Using RemoveQuotes:

Parameters:

S: A string value containing the quoted text.

QuoteChar: The character that is to be treated as the quoted text.

Return Value:

This function will return a string value containing the input text with double and enclosing quote characters removed.

Example: