# Chapters or sections in different files [duplicate]

Possible Duplicate:
Keep chapter number of chapters inserted with \include

I would like to write down a paper with 4 chapters or sections and I would like to write them in separate files and then compile all of them together (the references also). How can I do this?