If one of the task in your SSIS package is to move the source text files to an archive folder after its processed then this can be done through the script task in SSIS.
Steps involved :
- create a variable in SSIS package : right click anywhere in your package and click on variables --> create a variable as "vFileName" with string as datatype
- Create a text file connection with the path to connect the source text file --> define the columns ( the connection path will disappear once its executed as it will use the expressions for connection string in next step)
- ssis create expressions for connection in ssis : right click on text file in the connections area --> click on properties --> click on expressions --> select the user::variable in the left pane --> select "connection string" at the right pane --> click "Ok"