Forums

OverviewV-Play 2 Support (Qt 5)File input/Output › Reply To: File input/Output

OverviewV-Play 2 Support (Qt 5)File input/Output › Reply To: File input/Output
#12570

Lorenz

Hi Andy,

we have a (currently undocumented) fileUtils context property, which you can use for that.

bool success = fileUtils.writeFile("myFile.txt", "myFileContentString")

you can also use it to read a file as Chris mentioned in this post.

Note that this is not officially supported as of now and you should carefully test your app if you use this!

 

Alternatively, you can implement something that fits your needs yourself in C++. Here is a simple example on how to do it.

 

Please let me know if that helps you or you need any further help!

Cheers,

Lorenz

  • This reply was modified 2 years, 6 months ago by  Lorenz.
  • This reply was modified 2 years, 6 months ago by  Lorenz.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support