[question] on adding strings when reading file names [message #36974] |
Tue, 11 November 2003 09:13 |
cmin2000
Messages: 1 Registered: November 2003
|
Junior Member |
|
|
Hi,
I am new to this IDL group.
I am trying to read multiple tiff images into my program.
It was quite easy using C. But, since I am new to IDL, I am suffering.
In C, it was something like the following:
If I was reading frame0.tif, frame1.tif, frame2 ... frame9.tif
I could run something like "read_frame frame%d.tif " and
was able to read multiple frames.
/********************
read_frame.c
********************/
int l, frames;
char *ifile,ifile1[80];
FILE *fpr;
for(l=1;l<=9;l++){
sprintf(ifile1,ifile,l);
}
if(!(fpr=fopen(ifile1,"r"))){
printf("cannot open file: %s\n",ifile1);
exit(1);
}
.....
I would like to do a similar stuff using IDL, but not quite sure
how to catenate the strings.
I hope some one can give me some help.
Thanx.
|
|
|