Question: I'm developing web site using Yii framework. I need form and use CActiveFormWidget. How can I style input fields and buttons with CSS? Which is the CSS class for button or textfield?

Answer: 
The `.output` command of the SQLite shell is a feature *of that shell* (along with all the other commands that begin with `.`). If you're working with the C interface, you should do a query to fetch the rows you want, and iterate over them writing them one at a time to the file.

Adapting from the sample code found in [this tutorial](http://souptonuts.sourceforge.net/readme_sqlite_tutorial.html)…

```c
static int callback(void *handle, int argc, char **argv, char **azColName) {
     FILE *f = handle;
     int i;
     const char *sep = "";
     for (i=0;i<argc;i++) {
         fprintf(f, "%s\"%s\"", sep, argv[i]);
         sep = ", ";
     }
     fprintf(f, "\n");
     return 0;
}

```

```c
const char *sql = "SELECT * FROM sample;";
sqlite3 *db;
FILE *f = fopen("sample.csv", "w"); // ought to check for errors here; demo code!
char *errs = NULL;

if (sqlite3_open("data.db", &db)) {
    fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
    sqlite3_close(db);
    exit(1);
}
if (sqlite3_exec(db, sql, callback, f, &errs) != SQLITE_OK)
    fprintf(stderr, "SQL error: %s\n", errs);
sqlite3_close(db);

```
The post seems a bit old, but I just want to update for any visitor looking for similar information. There is an open source C/C++ API for SQLite3 database import/export functions.

The API can be accessed via [here](https://github.com/fnoyanisi)