+ 5

I finally managed to open a .doc file, but...

https://www.sololearn.com/discuss/382102/?ref=app Now, I managed to open a .doc file using fstream... But, though I am able to write all printable objects,tabs and newlines, I am unable to write spaces to it... Thus, I am unable to align the data in the file correctly, as I wish to store a ticket with proper spaces... How can I write spaces to this .doc file as well? Why is it not writing the spaces? Please Note that after a non-space character, I am able to write the spaces... Help Me Please!

11th May 2017, 1:09 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
6 Réponses
+ 6
? following this thread. very interesting problem
11th May 2017, 1:17 PM
jay
jay - avatar
+ 4
I felt the same jay
11th May 2017, 1:20 PM
Vishnu ks
Vishnu ks - avatar
+ 3
Great one bro.. We can do it...
11th May 2017, 1:14 PM
Vishnu ks
Vishnu ks - avatar
+ 3
@Vishnu ks But tell me why is it not reading the spaces?
11th May 2017, 1:15 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 3
At last, found a similar way for excel, using .csv ... But it also has the same problem of spaces...
8th Jun 2017, 4:15 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
@Kinshuk Vasisht Can you please show the code fragment on working with the .doc file?
7th Jun 2017, 4:14 PM
MaxPal
MaxPal - avatar