May 28, 2022 at 12:14pm UTC
Hello, guys, how can i move my "sample.txt" file from my PC (NTFS) to a flash drive (FAT32) using DMA or programm interrupt in my cpp programm?
May 28, 2022 at 2:38pm UTC
File system specifics and DMA are
too much "low-level" for a normal
That's something that you'd mess with, if you were to write an operating system
In a normal
C/C++ program, you'd use something like
with the proper paths:
The underlying operating system and its device drivers almost certainly already
using DMA :-)
want to create your own
, then have a look at:
Last edited on
May 28, 2022 at 5:50pm UTC
May 28, 2022 at 3:09pm UTC
And if the OP is looking for something less Win-centric and more C++ there is C++17's filesystem library.
Windows does "choke" on UTF-X strings, sadly. See
for an example, paths p3 and p4 go *ka-blooie!* when executed. Though the example compiles without even a whimper.
Maybe it is an artifact of using Visual Studio. I'm too lazy to try another compiler/IDE on my Win development machine to test this.
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2022 - All rights reserved -
Spotted an error? contact us