public class NewsManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getNewsFilePath()
Get the path for the news files.
|
static String |
readNewsFile(String newsFile)
Reads news from a text file.
|
static String |
writeNewsFile(String newsFile,
String news)
Writes news to a text file.
|
public static String readNewsFile(String newsFile)
newsFile - name of the news file to read in, relative to the news file path.public static String writeNewsFile(String newsFile, String news)
newsFile - name of the news file to read in, relative to the news file path.news - the text to be written to the file.public static String getNewsFilePath()
Copyright © 2015 DuraSpace. All Rights Reserved.