private void writeChars( int db, int ln, String sc )
	{
		RandomAccessFile f = ( db==0 ? fdbf : db==1 ? ffpt : fcdx );
		int l = sc.length();
		int ml = Math.min(ln,l);
		try { f.writeBytes( (l==ml ? sc : sc.substring(0,ml)) ); }
		catch (IOException e) { e.printStackTrace(); }
		if(ln>l)
			{
			String s = new String(new char[ln-l]).replace("\0", " ");
			try { f.writeBytes(s); } catch (IOException e) { e.printStackTrace(); }
			}
	}