8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
## ######################################
## ###############################################################
## ## Version control history
## ###############################################################
## ## $Id$
## ## $Log$
## ## Revision 1.3 2000/11/12 17:10:51 peterg
## ## Close file if it is opened
## ## Reformated octave style
## ##
## ## Revision 1.2 1997/02/11 10:06:42 peterg
## ## Removed a debugging line.
## ##
|
>
>
>
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
## ######################################
## ###############################################################
## ## Version control history
## ###############################################################
## ## $Id$
## ## $Log$
## ## Revision 1.4 2003/03/24 12:18:00 gawthrop
## ## Default file when no second argument
## ##
## ## Revision 1.3 2000/11/12 17:10:51 peterg
## ## Close file if it is opened
## ## Reformated octave style
## ##
## ## Revision 1.2 1997/02/11 10:06:42 peterg
## ## Removed a debugging line.
## ##
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
elseif infofile<0
nofile = 1;
else
nofile = 0;
endif
if nofile
infofile = fopen("mtt_info.txt","a");
end;
fprintf(infofile, "INFORMATION: %s\n", info);
if nofile
fclose(infofile);
end;
|
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
elseif infofile<0
nofile = 1;
else
nofile = 0;
endif
if nofile
infofile = fopen("mtt_info.txt","at");
end;
fprintf(infofile, "INFORMATION: %s\n", info);
if nofile
fclose(infofile);
end;
|