[4d6936]: doc / tutorial / src / read_it_file.cpp  Maximize  Restore  History

Download this file

23 lines (16 with data), 386 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <itpp/itcomm.h>
using namespace itpp;
int main()
{
// Declare the it_file class
it_file ff;
// Open the file "it_file_test.it" for reading
ff.open("it_file_test.it");
// Read the variable a from the file. Put result in vector a.
vec a;
ff >> Name("a") >> a;
// Print the result
std::cout << "a = " << a << std::endl;
// Exit the program
return 0;
}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks