Archive for 'Path System'

Getting Path of Files in Corona sdk

we can get the path of the current directory using the following code.

Reading From a File using Corona sdk

we can read the data from the file using file:read().

Incoming search terms:

  • using lua file in document directory corona
  • apertura file testo con corona sdk
  • read file in corona
  • read image system documentdirectory corona
  • where is corona system documentsdirectory

Acessing SQLite Database in Corona

I’ll explain the basic steps to access SQLite database and loop through records in a table using Corona sdk.

Create sqlite database. (here I created country_capital.sqlite.)
Create table tbl_country_capital with the columns country and capital.

Copy the code below, paste it in main.lua file and execute it.. You’ll be able to see your table contents


 

Incoming search terms:

  • sqlite3 corona sdk
  • corona sdk database
  • corona sqlite select where
  • corona sqllite
  • select count corona