Depending on what you know about the contents of the file, there are a couple of approaches. If you know how many bytes are in the header, you can use "mseek" to set the current position of the file pointer. You can use "mgetl" to read lines from the file- after each read, the file pointer is repositioned. Essentially, you read line by line, and discard the output until you reach the end of the header section. If your files are formated such that the header files are of consistent format, you should be able to write a script using these functions.<br>
<br>Charlie<br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 12:44 PM, Armando Pisani <span dir="ltr"><<a href="mailto:arpisan@tin.it">arpisan@tin.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Sir,<br>
I use scilab to perform numerical anlysis. I usually produce data files with an header that describes the content of the file, so that the first line of the file is a list of characters, while the rest of the file is a numerical matrix.<br>
If I ask scilab to read my files I get an error message. Is there a way to ask scilab to skip one or more lines when reading a file?<br>
<br>
Thank you very much, yours Armando Pisani.<br>
</blockquote></div><br>