locked
Filing system problems with c++ and metro.

    Question

  • 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);


    n.Wright

    Wednesday, August 15, 2012 12:02 AM

Answers

  • 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.


    n.Wright


    Wednesday, August 15, 2012 12:49 AM
  • I put all 8 files in the continuations and it works fine now.


    n.Wright

    Wednesday, August 15, 2012 3:00 AM

All replies

  • 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.


    n.Wright


    Wednesday, August 15, 2012 12:49 AM
  • I put all 8 files in the continuations and it works fine now.


    n.Wright

    Wednesday, August 15, 2012 3:00 AM
  • Thanks for sharing the solution.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, August 16, 2012 3:26 AM