Results 1 to 12 of 12

Thread: [RESOLVED] Adding characters to file name to prevent overwriting?

Hybrid View

  1. #1
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: Adding characters to file name to prevent overwriting?

    Quote Originally Posted by wakawaka View Post
    jml's example is a different way to accomplish it but his also formats the path so the instead of my "myfile.txt(20)", his returns "myfile (20).txt".
    myfile.txt(20) is not a good format for an output file. myfile(20).txt will open up with whatever editor is associated with txt files. You'll get a dialog asking which program to open .txt(20) files which is bad UX.
    This pattern in common to all great programmers I know: they're not experts in something as much as experts in becoming experts in something.

    The best programming advice I ever got was to spend my entire career becoming educable. And I suggest you do the same.

  2. #2
    Hyperactive Member
    Join Date
    Jan 2010
    Posts
    259

    Re: Adding characters to file name to prevent overwriting?

    That is why I made the comment, but if the file is being read by an application and not a person, it is perfectly fine to do it as such.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    14

    Re: Adding characters to file name to prevent overwriting?

    Although I still don't understand how this code works I'll try to add it to my code, but I think I have to learn to use functions better.

    Thanks a lot, you're very helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width