About 356,000 results
Open links in new tab
  1. How to read data from a file in Lua - Stack Overflow

    I was wondering if there was a way to read data from a file or maybe just to see if it exists and return a true or false function fileRead(Path,LineNumber) --..Code... return Data end

  2. How to open a lua file on text editor using windows 10

    May 11, 2020 · I want to open a .Lua file on a text editor, I have tried most of the text editors but its still didn't let me. is there any process that i need to do to open the file like we usually doing to open...

  3. How to run Lua script from within VS Code - Stack Overflow

    Feb 12, 2020 · 7 Have been using Notepad++ for awhile now, and adding scripts via Lua extensions. Now, I would like to get my feet wet using VS Code and was wondering what sort of extensibility I …

  4. windows - How to open a file in lua - Stack Overflow

    Jan 8, 2019 · To open a file in it's registered application you can use os.execute('start [file_path]'), as stated by Henri and Bartek the registered application is the application that launches when you …

  5. (Lua 5.2) Cannot create file because io.open returns nil file handle

    Feb 8, 2023 · 2 It is correct that io.open(filename, "w") will create the file if it doesn't already exist. However, there are at least three prerequisites common to file operations: You must have sufficient …

  6. windows - How do I run a Lua script? - Stack Overflow

    Mar 6, 2016 · Open the code editor terminal and type lua filename.lua and that should run the program in the file.

  7. Lua File Handling - Stack Overflow

    Apr 1, 2021 · You are using the result of io.open incorrectly. After you open a file, you can read from it or write to it with the methods read/write. They are similar to the read/write functions, but you call them …

  8. How do you open a LUA file that is most likely a binary?

    Feb 19, 2019 · 2 I have a .lua file I am triying to access to edit the code. But when I open it in VS Code the next text appears: "The file is not displayed in the editor because it is either binary or uses an …

  9. windows - How to enter path of the lua file and open it (not in same ...

    Aug 15, 2023 · Please clarify: are you trying to read a path from standard input (user input), and store it as a string in the variable mainfile? Or are you trying to hard-code a path in test.lua, and you are …

  10. file init.lua script in neovim not working - Stack Overflow

    Apr 1, 2023 · The reason why you are not able to make innit.lua work might be because you tried to create it somewhere else. For default installations, you need to create a folder called nvim inside the …