Welcome! Log In Create A New Profile

Advanced

libntfs file writing

Posted by TheStripper 
libntfs file writing
January 18, 2010 09:16PM
Hello Brewers :)

First post to ask a question that I hope isn't stupid.

Using libntfs I've tried to write files to ntfs formatted usb devices, but all I can do is reading.

I've tried using the example included in libntfs that lists files and its working in every device I've tried.

So I've added the following code to the example after listing files but its seem to fail during the fopen.

FILE *f = fopen ("ntfs0:/Test.txt", "a+");

if (f == NULL) {
  printf("Could not open Test.txt file for writing.\n");
}
else {
  fputs ("WritingWritingWritingWriting" ,f);
  fclose(f);
}

Obviously the same code works writing to sd:

Could someone point me in the right direction or have sample code to solve this task?


Thanks in advance :)
Re: libntfs file writing
January 18, 2010 10:03PM
Linky to libntfs? I've never seen or heard of it ...
Re: libntfs file writing
January 18, 2010 11:23PM
Re: libntfs file writing
January 18, 2010 11:25PM
Quote
Arikado
Linky to libntfs? I've never seen or heard of it ...


I've used this port of NTFS-3G here a link to the wiibrew article.

It say it's possible to write files, but I can't find documentation, so I wonder if someone here have managed to use this library to write files,
or someone that can help me to know how, because I haven't found a solution.


Thanks.
Sorry, only registered users may post in this forum.

Click here to login