I am using the fopen command but ran into some syntax
difficulty;
i read in the file name from a text file like this:
id = fopen('D:\Files.txt')
FileName = fgetl(id)
then i want to do something like this:
directory = 'D:\Input\'
fid = fopen(directory FileName) ---- just to show an example
or
fid = fopen('D:\Input\'FileName) --- but i think i am
missing something. Any help would be nice!
Markthomas
Donn Shull - 17 Jul 2008 04:29 GMT
To concatinate strings together you can sue the syntax
[str1, str2]
or
cat(str1, str2)
you should also probably look at the functions
fileparts and fullfile as these could be very useful to you.