public static String getContents(String path)
	{
		//Firstly try to create the file
		File file = new File(path);

		//if the file exists
		if(file.exists())
		{
			String line = "";
			StringBuilder builder = new StringBuilder();

			int counter = 0;

			// Read the file and display it line by line. 
			BufferedReader in = null;

			try
			{
				//open stream to file
				in = new BufferedReader(new FileReader(file));

				try
				{   
					while ((line = in.readLine()) != null)
					{
						if (counter != 0)//if we are not on the first line
						{
							builder.append("\r"+line);
						}
						else//we are on the first line
						{
							//no need for new line character
							builder.append(line);
							counter++;
						}
					}
				}
				catch(IOException e){return null;}
				finally{in.close();}

				if(counter == 0){ return null; }
				else{ return builder.toString();}
			}
			catch (FileNotFoundException e) { return null; }
			catch (IOException e) { return null; }
		}
		else{ return null; }
	}