Append to File

Easy

📝 Description

Add text to the end of an existing file

Input Format

File path and text to append

Output Format

Updated file contents

Constraints

File size ≤ 1MB

🔍 Sample Input

sample.txt
new text
            

✅ Sample Output

(original contents + new text)
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run