You can just use file_copy or file_move.
Here is an example: http://stackoverflow.com/questions/5129559/attaching-files-to-nodes-programmatically-in-drupal-7https://stackoverflow.com/questions/5129559/attaching-files-to-nodes-programmatically-in-drupal-7