#include <kernwin.hpp> // For askfile_cv definition #include <diskio.hpp> // Prompt the user for a file char *file = askfile_cv(0, "", "File to open", NULL); // Open the file linput_t *myfile = open_linput(file, false); if (myfile == NULL) msg("Failed to open or corrupt file.\n"); else // Return the size of the opened file. msg("File size: %d\n", qlsize(myfile));