hi,
I have file as follow:
"1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0 2|GoldenEye (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?GoldenEye%20(1995)|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0 3|Four Rooms (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Four%20Rooms%20(1995)|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0"
this is sample of file . how I can read it. I want get vector from this file with all data except tab.
thanks in advance

 Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 10 Sep. 2011

0 Stimmen

doc fopen
doc fread
doc fgetl
doc fclose

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 10 Sep. 2011

0 Stimmen

fileread() and regexp() with the 'split' option.

1 Kommentar

huda nawaf
huda nawaf am 3 Nov. 2011
hi,
I can not find option 'split' with regexp.
I want to split these data from file:
1488844,3,2005-09-06
822109,5,2005-05-13
885013,4,2005-10-19
30878,4,2005-12-26
823519,3,2004-05-03
893988,3,2005-11-17
i need 893988 3 2005-11-17 each alone
thanks

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by