How to create .bin file?
-
@JonB Is that .xml created automatically in executable? Because,in exe folder, there are only file formats like .dat and .pak?
wrote on 25 Jul 2023, 07:34 last edited by JonB@Vijaykarthikeyan
What.xml
file? There is no mention of any in your code. Nor do I know what.dat
or.pak
files are doing in your "exe folder". -
@Vijaykarthikeyan said in How to create .bin file?:
I've replied with the full code
It would be good if you would answer the questions. Also, in the code you posted I don't see anything related to writing .bin file, so no idea how that should help us...
-
@Vijaykarthikeyan
What.xml
file? There is no mention of any in your code. Nor do I know what.dat
or.pak
files are doing in your "exe folder".wrote on 25 Jul 2023, 07:42 last edited by -
@Vijaykarthikeyan said in How to create .bin file?:
Qt Resource System.In that they have mentioned .qrc file which is the .xml format where all the resource files located.
The resource file itself is in XML format. But there will be no such file in the build folder. Resource files are built INTO the executable (I already mentioned that in this thread). So, don't know why you expect to see any .xml files in build folder...
-
@Vijaykarthikeyan said in How to create .bin file?:
I've replied with the full code
It would be good if you would answer the questions. Also, in the code you posted I don't see anything related to writing .bin file, so no idea how that should help us...
wrote on 25 Jul 2023, 07:52 last edited by@jsulm That's where I'm getting struck. I don't know how to create it. Then,you have asked what format. I have mentioned that it's a string format
-
@jsulm That's where I'm getting struck. I don't know how to create it. Then,you have asked what format. I have mentioned that it's a string format
@Vijaykarthikeyan said in How to create .bin file?:
I have mentioned that it's a string format
So, basically a text file?
Then what exactly is the problem? -
@jsulm That's where I'm getting struck. I don't know how to create it. Then,you have asked what format. I have mentioned that it's a string format
wrote on 25 Jul 2023, 07:58 last edited by@Vijaykarthikeyan
It is hard to understand what your question or issue is. But again a reminder: if you are wanting to write to a log file at runtime you won't be able to use aqrc:
for this, so why are we even discussing such a file? -
@Vijaykarthikeyan said in How to create .bin file?:
@JonB Yes.you are correct. Writing into other directory it works. I wonder Why?
@JonB said in How to create .bin file?:
they are read-only
@Vijaykarthikeyan said in How to create .bin file?:
Now, If I want to run my software in any other target system, it is not sure that those systems have same directory which I have coded in my file? What is the solution?
wrote on 25 Jul 2023, 08:42 last edited by@J-Hilk Thank you so much. Yes, it is possible through QStandardPath .
-
@Vijaykarthikeyan
It is hard to understand what your question or issue is. But again a reminder: if you are wanting to write to a log file at runtime you won't be able to use aqrc:
for this, so why are we even discussing such a file?wrote on 25 Jul 2023, 08:47 last edited by@JonB I understand why it can't be? Again thank you for suggesting another problem which is writing a file through QStandarPath.
-
@Vijaykarthikeyan said in How to create .bin file?:
I have mentioned that it's a string format
So, basically a text file?
Then what exactly is the problem?wrote on 25 Jul 2023, 08:55 last edited by@jsulm I have written into the .txt format and .csv format and I had a doubt about creating .bin format. Then you all cleared my doubt it's worth nothing written into bin file. So, the problem solved and my doubt is cleared now
-
-
@Vijaykarthikeyan
It is hard to understand what your question or issue is. But again a reminder: if you are wanting to write to a log file at runtime you won't be able to use aqrc:
for this, so why are we even discussing such a file?wrote on 25 Jul 2023, 10:14 last edited by@JonB Thank you.. I followed QStandardPath and tested in different target systems. It is able to create and write into the files independent of directories
21/22