creating my own log files

 
Within an EA I want to create a log file that is added to everytime an existing trade gets its first StopLoss assigned to provide a list containing the OrderSymbol(), OrderType(), OrderOpenPrice() and OrderStopLoss().

However, I understand that this file can not be read while the file is open for writing. I therefore think i may have to generate many files in order to look at the results while the EA is still running. I thought about using time or count of the number of entries to regularly close the existing file and then opening a new one. I then want to export the file to a spread sheet to analyse the results.

I have only ever used FileOpen("xxxxxxxx", FILE_BIN|FILE_READ), FileReadDouble(), FileClose() and FileWriteDouble().

Does the file have to consist of only 1 datatype (ie int, double, text)?

Also any better ideas of how to do what I want

All comments welcomed