About 23,000,000 results
Open links in new tab
  1. Naming (in code) – The ultimate guide and reference

    Jun 21, 2021 · File names. For file names, you need to consider conventions for casing, as well as what to name the file based on the code it contains. File name casing conventions and delimiters. For file naming, there are different conventions depending on the language, framework and style guide you follow.

  2. How do I create an incrementing filename - Stack Overflow

    Oct 12, 2023 · I'm creating a program that will create a file and save it to the directory with the filename sample.xml. Once the file is saved when i try to run the program again it overwrites the old file into the new one because they do have the same file name.

  3. What is the best way to generate a unique and short file name in …

    If you have access to a database, you can create and use a sequence in the file name. select mySequence.nextval from dual; It will be guaranteed to be unique and shouldn't get too large (unless you are pumping out a ton of files).

  4. Java Program to Create a File with a Unique Name

    Apr 24, 2025 · In this article, we will learn two different solutions for creating a file with a unique name. Below are the different approaches for creating a file with a unique name in Java. Now we will discuss each approach with one Java example …

  5. c++ - How to create a file with unique name? - Stack Overflow

    Mar 24, 2020 · Since you've tagged the question gnu and linux, you can use the mkstemp() fucntion: DESCRIPTION. The mkstemp() function generates a unique temporary filename from template, creates and opens the file, and returns an open file descriptor for the file.

  6. How to name Files in your Visual Studio Code - YouTube

    this video I will teach you how to name Files in your Visual Studio Code You will learn how to name your index.html file, CSS file, and your JavaScript file....

  7. How To Create Meaningful Names In Code | by Daan - Medium

    Jul 4, 2019 · In this article, I will show you some simple rules you can follow for creating good names. Naming things in your code is an art in itself! Having names which reveal their intent is easier...

  8. windows - How to create folder name or file name with special ...

    The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system: ... Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

  9. Java Create and Write To Files - W3Schools

    To create a file in Java, you can use the createNewFile() method. This method returns a boolean value: true if the file was successfully created, and false if the file already exists. Note that the method is enclosed in a try...catch block.

  10. Create a file name using Variables in Python | bobbyhadz

    Apr 10, 2024 · Use a formatted string literal to create a file name using variables, e.g. f'{variable}.txt'. Formatted string literals enable us to include expressions and variables inside of a string by prefixing the string with f. f.write('first line' + '\n') . f.write('second line' + '\n')

  11. Some results have been removed
Refresh