01.11.2014 Views

Reference Manual HALCON/C

Reference Manual HALCON/C

Reference Manual HALCON/C

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18 CHAPTER 2. FILE<br />

Attention<br />

Since all files are closed by close all files all handles become invalid.<br />

Result<br />

If it is possible to close the files the operator close all files returns the value H MSG TRUE. Otherwise an<br />

exception handling is raised.<br />

Parallelization Information<br />

close all files is local and processed completely exclusively without parallelization.<br />

close file<br />

Basic operators<br />

Alternatives<br />

Module<br />

close file ( long FileHandle )<br />

Closing a text file.<br />

The operator close file closes a file which was opened via the operator open file.<br />

Parameter<br />

º FileHandle (input control) .............................................................file long<br />

File handle.<br />

Example<br />

open_file("/tmp/data.txt","input",&FileHandle) ;<br />

/* ... */<br />

close_file(FileHandle) ;<br />

Result<br />

If the file handle is correct close file returns the value H MSG TRUE. Otherwise an exception handling is<br />

raised.<br />

Parallelization Information<br />

close file is local and processed completely exclusively without parallelization.<br />

open file<br />

open file<br />

Basic operators<br />

Possible Predecessor Functions<br />

See Also<br />

Module<br />

fnew line ( long FileHandle )<br />

Create a line feed.<br />

The operator fnew line puts out a line feed into the output file. At the same time the output buffer is cleaned.<br />

Parameter<br />

º FileHandle (input control) .............................................................file long<br />

File handle.<br />

Example<br />

fwrite_string(FileHandle,"Good Morning") ;<br />

fnew_line(FileHandle) ;<br />

<strong>HALCON</strong>/C <strong>Reference</strong> <strong>Manual</strong> / 2000-11-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!