<?xml-stylesheet type="text/xsl" href="xsl_log file.xsl"?>
i want to put above sentence in a 1st line of text file.....
how to write the code?
open "C:\aa.txt" for append as #1
print #1,"<sentence put here>"
close #1
Printable View
<?xml-stylesheet type="text/xsl" href="xsl_log file.xsl"?>
i want to put above sentence in a 1st line of text file.....
how to write the code?
open "C:\aa.txt" for append as #1
print #1,"<sentence put here>"
close #1
Write this.
Print #1, "<?xml-stylesheet type=""Text / xsl"" href=""xsl_log file.xsl""?>"
Open for Output. Open for Append opens an exosting file and puts what you print at the bottom.
If you want to print something to the first line of an existing file, you'll have to read the entire file, add the new sentence at the beginning, and priont the whole thing to the file. You can't insert text in an existing text file.