about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHanEmile <emile.hansmaennel@gmail.com>2017-02-14 19:26:08 +0100
committerHanEmile <emile.hansmaennel@gmail.com>2017-02-14 19:26:08 +0100
commit424418e850ac9ad9acbc160c4355a4656f987dce (patch)
tree517aed228e47eca7283c8b0448d5e418e3acde7b
parent299c39c511490e0f234c30f1ca3555bade1d5595 (diff)
able to read data from file
-rwxr-xr-xa.outbin9264 -> 14528 bytes
-rw-r--r--main.cpp22
2 files changed, 19 insertions, 3 deletions
diff --git a/a.out b/a.out
index 68f8168..6bd7ae9 100755
--- a/a.out
+++ b/a.out
Binary files differdiff --git a/main.cpp b/main.cpp
index d3b6ea6..b895b20 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,9 +1,25 @@
 #include <iostream>
 #include <stdlib.h>
+#include <fstream>
+#include <string>
 
 int main(){
-  std::cout << "Download Data" << std::endl;
-  command
-  system("ls -l");
+  // system("ls -l");
+  // system("python3 download_data.py");
+
+  std::string line;
+  std::ifstream file ("TLE/argos.txt");
+
+  if(file.is_open()){
+    while(getline(file, line)){
+      std::cout << line << '\n';
+    }
+    file.close();
+  }
+
+  else{
+    std::cout << "Unable to open file";
+  }
+
   return 0;
 }