Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <sstream>
- using namespace std;
- int main()
- {
- string path = "/home/user/text.txt";
- ifstream infile(path.c_str());
- string line;
- getline (infile,line);
- istringstream iny (line.c_str());
- float x, y, vx, vy, dt;
- iny >> x >> y >> vx >> vy >> dt;
- /*ofstream outfile;
- outfile.open (path.c_str());
- outfile << "hello world " << endl;
- outfile.close();*/
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment