this library helps you for using Local File System

Committer:
hirokimineshita
Date:
Fri Apr 17 07:09:00 2015 +0000
Revision:
3:3d65120edea0
Parent:
2:a1a5f37c1573
Child:
4:740a21177ed7
2015/04/17 PM4 miner change 3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hirokimineshita 0:48f30ad8e377 1 #ifndef _LFS_USEFUR_H_20150417_1537_
hirokimineshita 0:48f30ad8e377 2 #define _LFS_USEFUR_H_20150417_1537_
hirokimineshita 0:48f30ad8e377 3
hirokimineshita 3:3d65120edea0 4 /** read_some function :
hirokimineshita 3:3d65120edea0 5 * @bref read some member of csv format document in local file and write in arrangement
hirokimineshita 0:48f30ad8e377 6 * @param f write FILE *(name) 's name
hirokimineshita 0:48f30ad8e377 7 * @param ar arrangement which you want to get data
hirokimineshita 0:48f30ad8e377 8 * @param num the number of elements you want to get
hirokimineshita 2:a1a5f37c1573 9 */
hirokimineshita 0:48f30ad8e377 10 void read_some(FILE *f,double *ar,int num){
hirokimineshita 0:48f30ad8e377 11 for(int i=0; i<num; i++)fscanf(f,"%lf,",&ar[i]);
hirokimineshita 0:48f30ad8e377 12 }
hirokimineshita 0:48f30ad8e377 13
hirokimineshita 0:48f30ad8e377 14 #endif