
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#pragma once

#define MAX_NUM_PTS 				19200

class dataIO {


	public:

		dataIO();
		void save_data(float * xPos, float * yPos, int * timePos, int * skipPos, int nPoints);
		void load_data(char * fileName);


		FILE * sv;
		FILE * of;

		char ch;
		char fileOut[30];
		char fileIn[30];

		int nl_counter;
		int counter;
		int char_count;
		int comma_count;

		int temp;

		//make room for temp char data
		char char_n_pts[10];
		char temp_char[10];


		//make room for loaded data
		int   n_pts;
		float x_pts[MAX_NUM_PTS];
		float y_pts[MAX_NUM_PTS];
		int	  t_pts[MAX_NUM_PTS];
		int   skip_pts[MAX_NUM_PTS];



};
