Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

problem in file operation.. in c...

Status
Not open for further replies.

bharathidasan.j

Newbie level 5
Joined
Feb 14, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
i hava a file which has both text and numbers.. my requirement is to take the numbers alone and process.. how to take the numbers alone leaving the text untouched?... for sample i have given the file details...

Frequency SignalLevel FieldLevel AnalyzerLevel
80 -20.82 5.22 -18.8
80.8 -20.4 5.2 -18.8
81.608 -20.17 5.22 -19
82.424 -20.17 5.2 -19.3
83.248 -20.15 5.21 -19.5
84.081 -20.13 5.22 -19.7
84.922 -20.05 5.23 -19.7
85.771 -20.06 5.21 -19.8
86.629 -20.32 5.21 -19.9
87.495 -20.86 5.2 -20.3
88.37 -21.45 5.2 -20.9
89.253 -21.69 5.2 -21.3
90.146 -21.44 5.21 -21.6


as you can see there are four type of datas(details) available i have to seperately take the informations.. how to proceed with?.... i could able to read and write only could not able to seperate the datas.. as i am new to c programming dont know how to extract the informations...

pls help me...
 

ship_baba

Member level 4
Joined
Aug 9, 2007
Messages
70
Helped
6
Reputation
12
Reaction score
5
Trophy points
1,288
Activity points
1,592
hi

as of your data, you can deal some logic with compare with string data type and int and float and double,

stringsl always less than 256, and int.

and you have to think and search internet for logic


regards

ship
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top