Wednesday, August 15, 2012 12:02 AM
I am trying to write about 8 files to disc,
If I just write the first file then it works fine.
If I write two files to disc then the first file contents becomes a copy of the second file.
I have even tried using two separate functions for the saves in case there is a clash.
I can only guess now that each save must be in a continuation of the previous file-save to work.
Or can I save files sequentially ?
layer =1; auto str = String::Concat(gerberfilename, ".cl"); fname = String::Concat(str, layer); writecopperlayer(fname); layer=2; str = String::Concat(gerberfilename, ".cl"); fname = String::Concat(str, layer); writecopperlayer2(fname);
Wednesday, August 15, 2012 12:49 AM
Of course the layer value will be lost by the time the async filing system saves the code.
I quickly tried saving two files of which the second was in the continuation and it now works fine.
Wednesday, August 15, 2012 3:00 AM
I put all 8 files in the continuations and it works fine now.
- Marked As Answer by wrightylplp Wednesday, August 15, 2012 3:00 AM
Thursday, August 16, 2012 3:26 AMModerator
Thanks for sharing the solution.
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us