Skip navigation.
 
mlRe: writing huge C-array to a file
FROM : Dado Colussi
DATE : Fri Jul 21 17:27:55 2006

You could use NSFileHandle to *open* your file. It has a method 
fileDescriptor that returns a normal UNIX/POSIX file descriptor. See 
also fdopen() if you're interested in using stdio. Then use your 
preferred algorithm to actually *write* the matrix out.

Dado


On 21 Jul 2006, at 17:04, PGM wrote:

> This works, but I am afraid that it will break when the fileName 
> contains non-ASCII characters. Is there another fast way to write a 
> large C-array to a file that does work with non-ASCII filenames?

Related mailsAuthorDate
mlwriting huge C-array to a file PGM Jul 21, 17:04
mlRe: writing huge C-array to a file Dado Colussi Jul 21, 17:27
mlRe: writing huge C-array to a file Tommy Nordgren Jul 21, 17:44
mlConverting file names to C strings (was Re: writing huge C-array to a file) Douglas Davidson Jul 21, 17:54
mlRe: writing huge C-array to a file Bill Bumgarner Jul 21, 18:01
mlRe: writing huge C-array to a file Uli Kusterer Jul 21, 18:21
mlRe: writing huge C-array to a file Steve Bird Jul 24, 03:29
mlRe: writing huge C-array to a file Bill Bumgarner Jul 24, 04:26
mlRe: writing huge C-array to a file PGM Jul 24, 04:40
mlRe: writing huge C-array to a file Jakob Olesen Jul 24, 10:15
mlRe: writing huge C-array to a file PGM Jul 24, 15:55
mlRe: Re: writing huge C-array to a file Michael Ash Jul 24, 17:39