code: public static Scs cs_load(String fileName) {
          int i, j;
          float x;
          Scs T;
          BufferedReader in;
          try {
              in = new BufferedReader(new FileReader(fileName));
          } catch (FileNotFoundException e1) {
              return (null);
          }
          T = Scs_util.cs_spalloc(0, 0, 1, true, true); /* allocate result */
          String line;
          try {
              while ((line = in.readLine()) != null) {
                  String[] tokens = line.trim().split("\\s+");
                  if (tokens.length != 3) {
                      return null;
                  }
                  i = Integer.parseInt(tokens[0]);
                  j = Integer.parseInt(tokens[1]);
                  x = Float.parseFloat(tokens[2]);
                  if (!Scs_entry.cs_entry(T, i, j, x))
                      return (null);
              }
          } catch (IOException e) {
              return (null);
          }
          return (T);
      }
docs: Loads a triplet matrix T from a file. Each line of the file contains
  three values: a row index i, a column index j, and a numerical value aij.
  The file is zero-based.
  
  @param fileName
  file name
  @return T if successful, null on error