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

 Réponse acceptée

Grzegorz Knor
Grzegorz Knor le 10 Sep 2011

0 votes

doc fopen
doc fread
doc fgetl
doc fclose

Plus de réponses (1)

Walter Roberson
Walter Roberson le 10 Sep 2011

0 votes

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

1 commentaire

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

Connectez-vous pour commenter.

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by