Jump to content

Recommended Posts

Posted
  On 7/29/2014 at 7:56 AM, guinness said:

This should be removed and is on my todo list, but currently I don't have svn. I should be able to update this weekend.

Done with revision 10506.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Mat,

I don't remember why I didn't use _TempFile(), but then with all due respect the examples before were writing to the C: drive and not tidying up afterwards. So... :) I shall fix them.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I remember now. It's because before there was a policy of not using UDF functions inside the native function examples, due to the separation of the two. This has slightly relaxed since I came up with a script to merge the help files into one. I would be more inclined to use the Win32 API for creating a temp file.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 7/29/2014 at 12:12 PM, Jon said:

Not true, you still need to generate a unique temporary filename to be safe :)

 

Purpose of examples in the helpfile is not to be SUPER safe about retaining content of TEMP directory.

Purpose of examples in the helpfile is just to show how to use related function.

It would be too much redundant code in examples for generating valid not existing temp file names

I vote for not doing this in examples, rather stay with simple examples.

End user is always responsible to see what is he doing.

Posted

I hate to admit but I side with Mat and Jon, even though I re-wrote them and hate looking stupid. Although the names are unlikely to exist at the time of creation, I am sure someone will come along one day and say we broke their temp doc called FileOpen.txt, to which I would reply lock it with the Lock UDF below.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/29/2014 at 4:58 PM, guinness said:

Mat,

I don't remember why I didn't use _TempFile(), but then with all due respect the examples before were writing to the C: drive and not tidying up afterwards. So... :) I shall fix them.

  Quote

 

Revision: 10523

Author: guinness

Date: 30 July 2014

Message:

Fixed: Now using a temporary file instead of a static filepath.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...