Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Adding header/footer to a file in VB.net and a PICTure question

Hi...

two questions:

1 I know how to read/write a file line by line... but i must change a file (rsr) to a pict file by changing the header of the file. Here is what i should do:

"All you have to do is remove the first 'line' (i.e what a text editor on UNIX would consider a line, the bytes up to and including the first linefeed character, aka "\n" to programmers) and replace it with the appropriate header file below."

I have this header... but i don't know how to do this...

2 Once the file is converted, it is a PICT file... but they can't be opened with VB.net. How can you convert it to a png file from within VB.net ?

Thanks.
[707 byte] By [semidieu] at [2007-11-11 8:04:25]