none
What is the difference between Path.GetTempFileName and FileIO.FileSystem.GetTempFileName? RRS feed

Answers

  • Hello,

    With Path.GetTempFileName() a known/specific exception can be captured while FileIO.FileSystem.GetTempFileName does not have a known/specific exception.

    And Path.GetTempFileName is usable on cross platform where FileIO.FileSystem.GetTempFileName is not so I would recommend Path.GetTempFileName.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    • Marked as answer by Brian Tkatch Thursday, January 9, 2020 11:32 PM
    Thursday, January 9, 2020 11:18 PM
    Moderator