this library helps you for using Local File System
Diff: lfs_useful.h
- Revision:
- 0:48f30ad8e377
- Child:
- 1:2ca69b58dae7
diff -r 000000000000 -r 48f30ad8e377 lfs_useful.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lfs_useful.h Fri Apr 17 06:50:49 2015 +0000 @@ -0,0 +1,16 @@ +#ifndef _LFS_USEFUR_H_20150417_1537_ +#define _LFS_USEFUR_H_20150417_1537_ +/** + * @file this library is to be easy to use Local File System +*/ + +/** 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 \ No newline at end of file