How can close the file after creating the file RRS feed

  • Question

  • User-1355965324 posted


    I want to close the file after the file created . Please can you help me how to close the file after it being created

    here is my code

    doc.FileNameURL.CopyTo(new FileStream(filePath, FileMode.Create)); // It is successfully created but after that it is not being closed. Please help

    Tuesday, February 18, 2020 7:28 AM


  • User-1355965324 posted

    I solved by closing the filestream

    FileStream  _file= new FileStream(filePath, FileMode.Create);



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 18, 2020 8:59 AM