public static int[] getRow_AND_ColumnCount(String path)
	{
		int columns = 0;
		int rows = 0;

		// Read the file and display it line by line.
		String line = "";

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

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

			try
			{
				while ((line = in.readLine()) != null)
				{
					if (rows == 0)
					{
						String[] column = line.split(",");

						for(String c : column)
						{
							if (!c.equals(""))
								columns++;
						}
					}

					rows++;
				}
			}
			catch(IOException e){return null;}
			finally{in.close();}
		}
		catch(FileNotFoundException fnf){ System.out.println("File not found: "+path); }
		catch (IOException e) { return null; }

		int[] dimensions = { columns, rows };
		return dimensions;
	}