I have two files, say file1.tex and file2.tex. file1.tex is the first of a series of files, and it begins with counters (say chapter 1 for instance, although my counters are not used for chapters). Then at the end of file1, the counter for chapters is at say 7 ; I want to carry the value of the counter to file2.tex so that I can use a counter which will have the value 7 in file2.tex. In this way I could possibly carry on the counter in file2.tex to a counter in some file3.tex and so on.
I assume I would need to compile file1.tex first, and then file2.tex, and then file3.tex... of course.
Is that possible? And if so, how? I couldn't think of anything.

\includeor\inputthe files depending on your needs. The main file will keep track of the counter. Here is a thread on when to use either input or include: Include vs Input – dustin Aug 21 '13 at 00:54xr. So if you label your theorem infile1, you can\ref{thoerem}infile2.tex. – dustin Aug 21 '13 at 01:26refcount. – Werner Aug 21 '13 at 01:59