public static String toFileContent(Properties props){
  try {
    StringWriter writer=new StringWriter();
    props.store(writer,"");
    return writer.toString();
  }
 catch (  IOException ioe) {
    throw new IllegalStateException(ioe);
  }
}

public static String toFileContent ( Properties props ) { try { StringWriter writer = new StringWriter ( ) ; props . store ( writer , "" ) ; return writer . toString ( ) ; } catch ( IOException ioe ) { throw new IllegalStateException ( ioe ) ; } }
converts properties to file storage format
