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
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,560 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 36,111 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 Answers by the question author, which helps users to know the answer solved the author's problem.