Can You Edit File via Server Action?

Is it possible to edit a text or csv file via server action?

For example Upload a file -> Then use a server action to delete the first three lines -> Save file.

I used to do this with fopen and php.

Community Page
Last updated: