apart from the recommendations that @mscheltienne gave above, I would also recommend that you take the time to formulate a concise question, instead of merely supplying a code example.
Furthermore, formulating a fitting title for your question may attract more helpful answers.
Example for a good question title (picked semi-randomly from the current front page):
→ Here, users already know the question will deal with:
- EDF files (raw)
- file IO
- concatenation of files
- …
Whereas “who can help me solve this problem” doesn’t say a lot about what you need.
Good luck!