633 B
633 B
File Operations Guidelines
read_file
<read_file>
<path>File path here</path>
</read_file>
Required Parameters:
path: The file path to read
Common Errors to Avoid:
- Attempting to read non-existent files
- Using incorrect or relative paths
- Missing the
pathparameter
Best Practices:
- Always check if a file exists before attempting to modify it
- Use
read_filebeforeapply_difforsearch_and_replaceto verify content - For large files, consider using start_line and end_line parameters to read specific sections
write_to_file
<write_to_file>
<path>File path here</path>