Home > Contents > Index > 
Expanded TOC | Accordion TOC | Annotated TOC | Index 
Utilities.fileName
Creates a full path, including file name, given a folder and file name.
Syntax
public static final String fileName(String folder, String fname)Parameters
folder- Input. Specify the pathname of the folder (directory).
 
fname- Input. Specify the filename.
 
Description
The
fileNamemethod creates a full path, including file name, given a folder and file name. The path is internally converted byosSafeSpec().Returns
The full name and path of the file.
Example
The following code sets a string object named
Pathnameto the value/tmp/test.txt:
String sFolder = "/tmp"; String sFile = "test.txt"; String Pathname = Utilities.fileName( sFolder, sFile );See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.