QFile in memory

  • Hello there,

    One of my already existing interface accepts a file_name. (Further down in the library, it would be open and read).
    Now, I have another requirement in which the content of the file has to be in MEMORY ( not to be present physically).
    Is there any way thay I can create a File in memory, and may be just pass the QFile (so that, the file could be either physical or in memory)

    Thanks in advance

  • Lifetime Qt Champion

    What do you mean with 'in memory'? What do you want to do with it? If you want to read a file into memory use readAll() or read().

Log in to reply