public class NewsManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getNewsFilePath()
Get the path for the news files.
|
static java.lang.String |
readNewsFile(java.lang.String newsFile)
Reads news from a text file.
|
static java.lang.String |
writeNewsFile(java.lang.String newsFile,
java.lang.String news)
Writes news to a text file.
|
public static java.lang.String readNewsFile(java.lang.String newsFile)
newsFile - name of the news file to read in, relative to the news file path.public static java.lang.String writeNewsFile(java.lang.String newsFile,
java.lang.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 java.lang.String getNewsFilePath()
Copyright © 2013 DuraSpace. All Rights Reserved.