Post: [SPRX] Write text files to your PS3
05-23-2015, 06:30 PM #1
Winter
Purple God
(adsbygoogle = window.adsbygoogle || []).push({});
someone wanted to know how to write a txt file on your PS3, so I thought I might as well release it

You must login or register to view this content.
Note to mods: If you want a virus scan do it your self and update the thread then remove this message. It's a source

The following 8 users say thank you to Winter for this useful post:

Boliberrys, Coffee Bean, Destroyer_MMXV, modzlife2000, samet2013, Passion, TehMerkMods, Laser
05-23-2015, 06:33 PM #2
Originally posted by helpdickstuckincow View Post
someone wanted to know how to write a txt file on your PS3, so I thought I might as well release it

You must login or register to view this content.
Note to mods: If you want a virus scan do it your self and update the thread then remove this message. It's a source



Nice release man Happy would this be used for writing text for a vsh notification? Smile
05-23-2015, 06:33 PM #3
Chris
Former Staff
Some people may find this helpful, good shit.
05-23-2015, 06:36 PM #4
Winter
Purple God
Originally posted by Coffee
Nice release man Happy would this be used for writing text for a vsh notification? Smile


a vsh notification is somewhat more difficult, but the point of this is writing a actual file on your console.

for example if I want to write "Winter was Here" into a text file and put it in /dev_hdd0/tmp/ATextFile.txt I could with this.
05-23-2015, 06:37 PM #5
Originally posted by helpdickstuckincow View Post
a vsh notification is somewhat more difficult, but the point of this is writing a actual file on your console.

for example if I want to write "Winter was Here" into a text file and put it in /dev_hdd0/tmp/ATextFile.txt I could with this.


Oh i see Happy Nice one dude
05-23-2015, 06:58 PM #6
Slick
Anxiety
Look's interesting.. Nice dude Enzo
05-23-2015, 09:50 PM #7
Originally posted by helpdickstuckincow View Post
someone wanted to know how to write a txt file on your PS3, so I thought I might as well release it

You must login or register to view this content.
Note to mods: If you want a virus scan do it your self and update the thread then remove this message. It's a source


You should include how to read a file, if you haven't already
05-24-2015, 12:32 AM #8
Originally posted by helpdickstuckincow View Post
someone wanted to know how to write a txt file on your PS3, so I thought I might as well release it

You must login or register to view this content.
Note to mods: If you want a virus scan do it your self and update the thread then remove this message. It's a source



Nice post Smile
05-24-2015, 01:47 AM #9
Winter
Purple God
Originally posted by FeverDEX View Post
You should include how to read a file, if you haven't already


Okay.
05-31-2015, 01:52 AM #10
Originally posted by FeverDEX View Post
You should include how to read a file, if you haven't already


I've had this in one of my engine text menus for cod it's read text file.

    
#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");
}
}
}

The following user thanked Black Panther for this useful post:

John

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo