this library helps you for using Local File System

lfs_useful.h

Committer:
hirokimineshita
Date:
2015-04-17
Revision:
1:2ca69b58dae7
Parent:
0:48f30ad8e377
Child:
2:a1a5f37c1573

File content as of revision 1:2ca69b58dae7:

#ifndef _LFS_USEFUR_H_20150417_1537_
#define _LFS_USEFUR_H_20150417_1537_

/** read some member of csv format document in local file and write in arrangement
 * @param f write FILE *(name) 's name
 * @param ar arrangement which you want to get data
 * @param num the number of elements you want to get
*/
void read_some(FILE *f,double *ar,int num){
    for(int i=0; i<num; i++)fscanf(f,"%lf,",&ar[i]);
}

#endif