Add lines in txt file

ELEVEN 80 Reputation points
2023-09-25T00:32:41.1166667+00:00

I have a txt file like shown, could i use SSIS to add lines before and after the content?

name,location,email
aa,bb,cc
dd,ee,ff

And i want to it be like:

File Name
---------------
name,location,email
aa,bb,cc
dd,ee,ff
--------------
Edit date

Is it possible?

SQL Server Integration Services
0 comments No comments
{count} votes

Answer accepted by question author
  1. ZoeHui-MSFT 41,541 Reputation points
    2023-09-25T01:53:27.1666667+00:00

    Hi @ELEVEN,

    It is a bit hard to meet your requirement via SSIS.

    If you are good at C#, you may use C# code in script task to do that.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.