@Grue - I help where I can, but too much of vc is still a mystery to me. Generally experimenting clarifies things, but that takes quite a bit of time, and when you just want to know how to do something I can do in c++ it breaks your programming rhythm.
@vec - Thanks that clarifies thing a little. However, I still can't get a basic log style writing function to work.
dd_dump = FileOpen("dump\data.txt", FILE_WRITE);
FileSeekPos(dd_dump, 0, SEEK_END);
FileWrite(dd_dump, dd_dumpstr); // or FileWriteln/FileWriteString
FileClose(dd_dump);
This just overwrites from the beginning of the file each time - is SEEK_END not implemented yet?
dd_dump = FileOpen("dump\data.txt", FILE_WRITE);
FileSeekPos(dd_dump, DumpEndOfFile, SEEK_SET);
FileWrite(dd_dump, dd_dumpstr); // or FileWriteln/FileWriteString
DumpEndOfFile = FileCurrentPos(dd_dump);
FileClose(dd_dump);
This just writes blanks over anything writen up to that point, so the output is "data1" then " data2". Reading in the entire file to a string then writing it again with a little bit extra on the end doesn't seem a good solution to me.
Also, how can I put a newline character in my strings? None of the standard \0 \r \n work.
Finally, is there any trick to understanding which line number verge actuall means with 'system.vc(75): some error' - 'cos the one thing you can guarentee is it ain't line 75.
Thanks,
Zip