okay I got this code to read a file on the server side:
char *g_ReadFiles(char *filename)
{
int len;
fileHandle_t f;
char *buf;
len = trap_FS_FOpenFile( filename, &f, FS_READ );
if ( !f ) {
return va( S_COLOR_RED "file not found: %s
", filename );
}
trap_FS_Read( buf, len, f );
//buf[len] = 0;
trap_FS_FCloseFile( f );
return buf;
}
and i’m calling it with this:
trap_Printf(g_ReadFiles("file.txt"));
is this correct and if so, where the hell do I have to put the text file to make it work? 
The files i’m trying to read are supposed to be on server side only.
