public void ExportPosts(String questionsFile, String answersFile, List<ClassDocumentation> docs)
	{
		//List<PostInfo> list = ExportQuestions(questionsFile, tag);
		//ExportAnswers(answersFile, list);
		try
		{
			FileWriter fwAnswers = new FileWriter(answersFile);
			FileWriter fwQuestions = new FileWriter(questionsFile);
			DBInfo info = new DBInfo();
			info.Init();
			
			for( ClassDocumentation doc : docs )
			{
				String packName = doc.Klass.ParentPackage.Name;
				String klassName = doc.Klass.Name;
				for( ThreadElement thread : doc.getValidatedThreads() )
				{
					for( AnswerElement ans : thread.Answers)
					{
						if( ans.IsValidated(doc.Klass) )
						{
							int id = ans.Id;
							PostInfo a = info.GetPostDetail(id);
							fwAnswers.write( join( new String[]
							        {
										a.Id+ "",
										a.PostTypeId+ "",
										a.ParentId+ "",
										a.OwnerUserId+ "",
										a.CreationDate.toString(),
										a.LastActivityDate.toString(),
										//a.ViewCount+"",
										//a.Tags,
										//a.Title.replace(",", "[;]")
							        }, 
									","));
							fwAnswers.write("\n");
						}
					}
					if( thread.Question.IsLinked && thread.Question.IsValidated(doc.Klass) )
					{
						int id = thread.Question.Id;
						PostInfo q = info.GetPostDetail(id);

						fwQuestions.write( join( new String[]
						        {
									q.Id+ "",
									q.PostTypeId+ "",
									q.OwnerUserId+ "",
									q.CreationDate.toString(),
									q.LastActivityDate.toString(),
									q.ViewCount+"",
									q.Tags,
									q.Title.replace(",", "[;]")
						        }, 
								","));
						fwQuestions.write("\n");
					}
				}
			}
			info.Close();
			fwQuestions.close();
			fwAnswers.close();
		}
		catch (IOException e) 
		{
			e.printStackTrace();
		}
		
	}