- Timestamp:
- Jan 30, 2010 12:45:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NSORT.ipf
r626 r627 235 235 Endif 236 236 237 // read in the header information from each of the combined files and put this information in the file header238 String dum,hdr1="none\r\n",hdr2="none\r\n",hdr3="none\r\n"239 PathInfo catPathName240 241 // the first file exists, check anyways242 if(cmpstr(firstFileName,"none") !=0)243 Open/R refNum as S_Path+firstFileName244 FReadLine refNum, dum245 FReadLine refNum, hdr1 //just grab the second line246 Close refNum247 endif248 //second file249 if(cmpstr(secondFileName,"none") !=0)250 Open/R refNum as S_Path+secondFileName251 FReadLine refNum, dum252 FReadLine refNum, hdr2 //just grab the second line253 Close refNum254 endif255 // third file256 if(cmpstr(thirdFileName,"none") !=0)257 Open/R refNum as S_Path+thirdFileName258 FReadLine refNum, dum259 FReadLine refNum, hdr3 //just grab the second line260 Close refNum261 endif237 // // read in the header information from each of the combined files and put this information in the file header 238 // String dum,hdr1="none\r\n",hdr2="none\r\n",hdr3="none\r\n" 239 // PathInfo catPathName 240 // 241 // // the first file exists, check anyways 242 // if(cmpstr(firstFileName,"none") !=0) 243 // Open/R refNum as S_Path+firstFileName 244 // FReadLine refNum, dum 245 // FReadLine refNum, hdr1 //just grab the second line 246 // Close refNum 247 // endif 248 // //second file 249 // if(cmpstr(secondFileName,"none") !=0) 250 // Open/R refNum as S_Path+secondFileName 251 // FReadLine refNum, dum 252 // FReadLine refNum, hdr2 //just grab the second line 253 // Close refNum 254 // endif 255 // // third file 256 // if(cmpstr(thirdFileName,"none") !=0) 257 // Open/R refNum as S_Path+thirdFileName 258 // FReadLine refNum, dum 259 // FReadLine refNum, hdr3 //just grab the second line 260 // Close refNum 261 // endif 262 262 263 263 … … 267 267 fprintf refnum, "COMBINED FILE CREATED: %s \r\n",date() 268 268 269 fprintf refnum, "FIRST File %s",hdr1 //new, Mar 2008270 fprintf refnum, "SECOND File %s",hdr2 //new, Mar 2008271 fprintf refnum, "THIRD File %s",hdr3 //new, Mar 2008269 // fprintf refnum, "FIRST File %s",hdr1 //new, Mar 2008 270 // fprintf refnum, "SECOND File %s",hdr2 //new, Mar 2008 271 // fprintf refnum, "THIRD File %s",hdr3 //new, Mar 2008 272 272 273 273 fprintf refNum, "NSORT-ed %s \t + %s\t + %s\r\n",firstFileName, secondFileName,thirdFileName
Note: See TracChangeset
for help on using the changeset viewer.