fbuf: New data structure for buffered file I/O.
[pspp] / src / output / csv.c
index 455584914e7c4a470e8c506640880d6b94bad1f7..2802f4bbef3e630158b06349c0c0891066a62aa2 100644 (file)
@@ -92,7 +92,7 @@ csv_create (struct file_handle *fh, enum settings_output_devices device_type,
   csv->titles = parse_boolean (opt (d, o, "titles", "true"));
   csv->captions = parse_boolean (opt (d, o, "captions", "true"));
   csv->handle = fh;
-  csv->file = fn_open (fh, "w");
+  csv->file = fn_fopen (fh, "w");
   csv->n_items = 0;
 
   if (csv->file == NULL)