Hi everybody,
am I to stupid or is this really so confusing?
I simply want to write a slick edit macro which writes strings to a file!
In C this code will do that:
int fh = f-open("temp.txt", "w");
f-write(fh, "This is a test");
f-write(fh, "Test done");
fclose(fh);
I didn't get it in Slick-C. I found the command _FileOpen(<filename>, <mode>) but i didn't know how to write to
this opened file. I search a command like f-write().
I tried _FileWrite() but slickedit couldn't find that command, maybe this doesn't exist.
I also tried to use _BlobWriteToFile() but this will write me binary data to the file, but i need ascii data!
Hopefully somebody can help me.
I've searched the SLICK_C_Macro_Programming.pdf but i couldn't find something about file handling :-(
Tobi
EDIT: Why get I an error message, when i try to send my post to the forum, when the post contains
f-open() without the dash??? So in the above code you have to leave out the dashes!!!
Hope you understand what I mean