What do you want to save?
Add Code snippet
New code examples
-
C 2022-02-10 06:35:07
c get file size
If you have the file stream (FILE * f): fseek(f, 0, SEEK_END); // seek to end of file size = ftell(f); // get current file pointer fseek(f, 0, SEEK_SET); // seek back to beginning of file // proceed with allocating memory and reading the file Or, #incl... Add solution -
C 2021-11-11 10:09:34
how to check the size of a file in linux c
If you have the file stream (FILE * f): fseek(f, 0, SEEK_END); // seek to end of file size = ftell(f); // get current file pointer fseek(f, 0, SEEK_SET); // seek back to beginning of file // proceed with allocating memory and reading the file Or, #incl... Add solution -
PHP 2021-11-03 07:49:13
how to export php mysql data to csv through php
<?php //store the data that you retrieve from DB in a varible, in my case its $keywords_analytics if($keywords_analytics!=''){ $delimiter = ","; $fileName = 'search_terms.csv'; // Create a file pointer $f = fopen('php... Add solution -
C 2021-10-01 17:18:05
how to reset to read from beginning of file c
fseek(fptr, 0, SEEK_SET); Add solution -
PHP 2021-09-29 13:13:03
php create temporary file
// Works on Native Server // $tmp = tmpfile(); // $newfilename = 'newfile.txt'; // fwrite($tmp, "This is a sample string as a content."); // fseek($tmp, 0); // Works on Google App Engine $dir = sys_get_temp_dir(); $tmp = tempnam($dir, "foo... Add solution -
C++ 2021-09-29 04:48:02
how to read wav file in C++
#include <iostream> #include <string> #include <fstream> #include <cstdint> using std::cin; using std::cout; using std::endl; using std::fstream; using std::string; typedef struct WAV_HEADER { /* RIFF Chunk Descriptor */ ... Add solution