Forum: C++ Jul 7th, 2009 |
| Replies: 30 Views: 1,516 Solved it. The issue is with the read() and write() methods. Using get() and put() works successfully.
Thanks to all who helped.
[
QUOTE=Ancient Dragon;910063]did you try my previous... |
Forum: C++ Jul 7th, 2009 |
| Replies: 30 Views: 1,516 Yes - see previous response - I did the unix copy command, ftp-d to windows and opened with ms-word successfully. |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 To eliminate ftp as an issue. I ftp'd a doc from desktop to server. ftp'd the doc back to desktop to different location and doc opened successfully.
Copying a doc on server and then ftping is... |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 I wrote two programs - one with an fstream read and write and the other has the code provided in the example above. Both produced the unreadable doc.
I really don't think it's anything to do with... |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 if I ftp any work doc in binary format or asicc format and view the resulting file they are all fine. ftping the copied file that my binary creates does not work fine. So not too sure it's an ftp... |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 File is def not corrupted before copying. FYI am using a C++ binary on 2.8 sun solaris operating system. Run the binary and binary creates Output.doc from Input.doc. Output.doc is then ftp'd to... |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 Attached is the input file - Input.doc and the output file that is created - Output.doc. As you can see outfile looks very different to the inputfile. I used the code that you provided to test this. |
Forum: C++ Jul 6th, 2009 |
| Replies: 30 Views: 1,516 The microsoft word doc is copied successfully - byte per byte. Copied file is same size as original. However, when I try and use microsoft word to open the copied file, the copied file contents which... |
Forum: C++ Jul 3rd, 2009 |
| Replies: 30 Views: 1,516 II have written code that can successfully read and write a microsoft word doc - that is if the word doc contains plain text only. If there are any headings and different fonts used, these are not... |
Forum: C++ Jul 2nd, 2009 |
| Replies: 30 Views: 1,516 To be clear - I am using fstreams and read and opening the microsoft word doc in binary mode. Ditto with the newly created file that gets the contents of the word doc. All this is done using C++... |
Forum: C++ Jul 2nd, 2009 |
| Replies: 30 Views: 1,516 I missed this reply - sorry. I am treating the microsoft word doc in the C++ code as a binary doc and using fstreams to read/write the data. Then when I use microsoft word to open the newly copied... |
Forum: C++ Jul 2nd, 2009 |
| Replies: 30 Views: 1,516 I'm pretty sure that the text is being copied correctly insofar as one can using C++ filestream reads/writes and buffers. File sizes are the same also. Does one need to use microsoft apis to ensure... |
Forum: C++ Jul 1st, 2009 |
| Replies: 30 Views: 1,516 I have 2 binaries - a java binary that requests a microsoft word doc from a c++ binary. The C++ binary opens the word doc in binary mode, reads x no of chars and returns chars to java binary. Java... |
Forum: C++ Jun 26th, 2009 |
| Replies: 6 Views: 1,561 Did you get a solution to this issue? |