You can create procedure and list value pass to procedure as comm delimited
create USP_Insert_table (@list varchar(8000)='a.txt,b.txt,c.txt')
as
begin
insert into #table (text_name)
select data from dbo.f_Split(',',@list) where data<>''
end
function dbo.f_Split will split the list data in tabular format