would this be used for writing text for a vsh notification?
#define MOUNT_POINT "/dev_hdd0/tmp"
static int isMounted(const char *path) //Checks if path is mounted
{
int i, err;
CellFsStat status;
for (i = 0; i < 15; i++) {
err = cellFsStat(path, &status);
if (err == CELL_FS_SUCCEEDED) {
console_write("\nfslib Started\n");
return 1;
}
}
console_write("\nfslib failed\n");
return 0;
}
void ReadTextFile() //ReadsTextFile duh
{
char str[200];
CellFsErrno err;
int fd, dir;
char w[100], r[100], buf[200];
uint64_t sw, pos, sr, rd;
if (isMounted(MOUNT_POINT)) //Check if mounted
{
err = cellFsOpen(MOUNT_POINT"text_file_that_you_want_read.txt", CELL_FS_O_RDONLY, &fd, NULL, 0); // Opens file
if (err == 0)
{
err = cellFsRead(fd, str, sizeof(str), &sw); //Read File and moves text into placeholder 'str'
if (err != 0)
console_write("Failed to read file");
console_write(str);//prints text file
err = cellFsClose(fd);
if (err != 0)
console_write("Failed to close file");
}
}
}
would this be used for writing text for a vsh notification?
Thanks for the offer though.
Copyright © 2026, NextGenUpdate.
All Rights Reserved.