You can assign the file properties using sharepoint listItem. After getting
the listItem using SPListItem, try to do like below:
listItem["Author"] = "Jackson";listItem["Subject"] = "Chemistry";
after assigning all fields finally update the listItem and the changes will
appear.
listItem.Update();