-
Notifications
You must be signed in to change notification settings - Fork 0
/
dump.cpp
53 lines (41 loc) · 735 Bytes
/
dump.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* dump.cpp
* glia
*
* Created by Deniz Kural on 6/20/11.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
#include <string>
#include <fstream>
#include <iostream>
#include "dump.h"
using namespace std;
int load_file () {
string line;
ifstream myfile ("test.fastq");
if (myfile.is_open()) {
while (myfile.good()) {
getline (myfile,line);
cout << line << endl;
}
myfile.close();
}
else cout << "Unable to open read file";
return 0;
}
int chplay() {
unsigned char x, y;
x = 3;
y = 5;
cout << x+y;
return 0;
}
/* File writer prototype */
int write_file () {
ofstream outfile;
outfile.open("test.out");
outfile << "Writing to the file.\n";
outfile.close();
return 0;
}