|
| def | openr (fname) |
| |
| def | read (fname) |
| |
| def | create_file (f_name, lines) |
| |
| def | delete_lines (fname, lbeg, lend) |
| |
| def | read_lines (fname, lbeg, lend) |
| |
| def | insert (fname, string, lbeg) |
| |
| def | replace_line (fname, newstring, nline) |
| |
| def | string_list (f_name, str) |
| |
| def | string_find (f_name, str) |
| |
| def | word_list (f_name, str) |
| |
| def | word_find (f_name, str) |
| |
| def | find (fname, str, action, want) |
| |
| def | count_lines (fname) |
| |
| def | count_words |
| |
| def | swap_lines (fname, l1, l2) |
| |
file.py
Useful utilities for file editing/manipulation
by Andrea Mignone
Last modified Feb 2nd, 2008