private void writeTextAndData(Status status,Boolean isCrime,double[] sfts){
		try {
			//Create file with timestamp for writing tweets of that day
			File f = new File("text_social_data/" + getTime());
			f.setReadable(true, false);
			f.setWritable(true, false);
			BufferedWriter labelout = new BufferedWriter(new FileWriter(f, true));
			
			//Write the tweet id and classification label
			labelout.write(Long.toString(status.getId()) + ":");
			if(isCrime)
				labelout.write("1");
			else
				labelout.write("0");
			
			//Write tweet text
			labelout.write(":" + status.getText().replace("\n", "") + "\n");
			
			//Write tweet social features
			for(int i = 0; i < sfts.length; i++){
				labelout.write(Double.toString(sfts[i]) + ",");
			}
			//Write tweet features such as similarity attribute and nearby tweets attribute
			labelout.write(Double.toString(rtc.numNearbyGPS(status)) + ",");
			labelout.write(Double.toString(rtc.similarity(status)) + "\n");
			labelout.close();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}