Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78992552
ifstream_eof.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 24, 04:20
Size
313 B
Mime Type
text/x-c
Expires
Mon, Aug 26, 04:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20132421
Attached To
R9360 PCSC_git
ifstream_eof.cpp
View Options
#include <cassert>
#include <fstream>
#include <iostream>
int main(int argc, char *argv[]) {
double x[100], y[100];
std::ifstream read_file("Output.dat");
assert(read_file.is_open());
int i = 0;
while (!read_file.eof()) {
read_file >> x[i] >> y[i];
i++;
}
read_file.close();
return 0;
}
Event Timeline
Log In to Comment