Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <string.h>
#pragma hdrstop
#include "gdsii.h"
int main()
{
const char InputFile[] = "c:\\winappl\\bc5\\bus.gds";
const char OutputFile[] = "c:\\winappl\\bc5\\res.dat";
GDSFile bus(InputFile);
ofstream ofs(OutputFile, ios::out);
if (!ofs) {
cout << "Error open file: " << OutputFile << endl;
return 0;
}
bus.Open();
bus.Reset();
// while (!bus.IsTale()) {
for (int i=0; i<bus.TotalRecs; i++) {
ofs << (i+1) << ". " << bus.RecordName() << endl;
ofs << bus.Take();
bus.NextRecord();
}
return 0;
}
Соседние файлы в папке GDSII