How to work with files? Tips for beginners