Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

How can i read ip data from a text file

Status
Not open for further replies.

thanosb

Newbie level 2
Joined
Mar 23, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hi,
i am new in this filed and i'd like to know how can i read ip numbers from a text file with a row like this one below.
1236115462.507184,0.658182,0.146736,195.251.123.232,208.083.139.204,36557,2703,7,506,8,482

I had tried with the 'textread' command in MatLab but i believe that i do something wrong...

Is there any way to have the rest data numbers as real;

If anyone can do something...

Thanks in advance...
 

You should try PERL language for such purposes.

But you can do with textread in matlab
 

Hello
There are multiple ways, it depends if you want to just read the file and close it or if you want to import it into some database.

For just opening it, use Excel software, select comma seperation, this will show your data each in a column. seperated where there is a comma. You can delete all other columns if not needed.

For importing into database use MS Access and create formula to ignore whatever you don't need from your row, for creating formulas in Access see the Access help file and there are lots of posts on the internet too.

thanosb said:
Hi,
i am new in this filed and i'd like to know how can i read ip numbers from a text file with a row like this one below.
1236115462.507184,0.658182,0.146736,195.251.123.232,208.083.139.204,36557,2703,7,506,8,482

I had tried with the 'textread' command in MatLab but i believe that i do something wrong...

Is there any way to have the rest data numbers as real;

If anyone can do something...

Thanks in advance...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top