how read this file?

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

 Accepted Answer

Grzegorz Knor
Grzegorz Knor on 10 Sep 2011
doc fopen
doc fread
doc fgetl
doc fclose

More Answers (1)

Walter Roberson
Walter Roberson on 10 Sep 2011

0 votes

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

1 Comment

huda nawaf
huda nawaf on 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

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!