Fri Mar 31 09:10:50 1995 Adam Fedor <fedor@boulder.colorado.edu>

* NXStringTable.m (readFromFile:): Return the return value from
        readFromSteam so that errors get passed along.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-03 01:33:51 +00:00
parent 16ae846a4f
commit 77842ce1b9

View file

@ -111,14 +111,15 @@ char *NXscan_string;
- readFromFile:(const char *)fileName
{
id returnVal;
FILE *stream;
if ((stream = fopen(fileName, "r")) == NULL) {
perror("Error (NXStringTable)");
return nil;
}
[self readFromStream:stream];
returnVal = [self readFromStream:stream];
fclose(stream);
return self;
return returnVal;
}
- writeToStream:(FILE *)stream