NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: assistech on May 15, 2020, 08:50:38 PM

Title: writefile with NASM
Post by: assistech on May 15, 2020, 08:50:38 PM
How to write string in a  file ("mystring_inside.txt") with NASM ?
Title: Re: writefile with NASM
Post by: Frank Kotler on May 15, 2020, 09:28:03 PM
What have you tried? Foolish question, I suppose...

https://stackoverflow.com/questions/40003885/win32-assembly-writefile-to-console-dont-s

You might be better off linking with GoLink or some other(?)...

Best,
Frank

Title: Re: writefile with NASM
Post by: assistech on May 15, 2020, 09:47:42 PM
Golink ???

http://www.godevtool.com  ??????
Title: Re: writefile with NASM
Post by: assistech on May 16, 2020, 11:59:27 AM
Hi,

 I would like to write a string after "_scanf" at my MS-DOS screen and write this string on a file ".txt", i could recovery this information and use it with another langage like C.

Because i don't know how to insert assembler code in a C program with CODELITE, but i find a method to call my assembler code file ".exe", by calling the executable file with system("c:/.......");


Thanks,


Title: Re: writefile with NASM
Post by: Frank Kotler on May 16, 2020, 08:23:27 PM
Why do you want to involve assembly language at all?

Best,
Frank

Title: Re: writefile with NASM
Post by: assistech on May 16, 2020, 08:43:20 PM
Hi,

Because like it. And want to write hard code, not easy for someone would like copy my code for my futur software.