我将文件分块读出以后,用socket传送到另一端保存,为什么所有行开头的地方全加上了“\par”,如:
\viewkind4\uc1\pard\lang2052\f0\fs16 ; Microsoft Office 2000 Windows installer setup.exe information file.
\par ; If a file exists in the same directory as setup.exe named "setup.ini", or
\par ; /settings cvcvc vfv vdv<path to ini file> is passed on the command line, that file will
\par ; be read and modify the default behavior of setup as shown below.
\par 
\par [MSI]
\par ; If a value is present, the MSI section gives the name of the MSI file to install.  
\par ; This file must be in the same directory as setup.exe, and both must be in the root 
\par ; of the installation tree.
\par ; If no value is present, setup.exe will look for exactly one file matching "*.msi"
\par ; in its directory and if found, use that.
\par ;
\par MSI=data1.msi
\par 
\par ;[MST]
\par ; If a value is present, the MST section gives the full path to a transform to apply.  
\par ; Specify it in the form MST1=path to MST

解决方案 »

  1.   

    原文应改为;; Microsoft Office 2000 Windows installer setup.exe information file.
    ; If a file exists in the same directory as setup.exe named "setup.ini", or
    ; /settings <path to ini file> is passed on the command line, that file will
    ; be read and modify the default behavior of setup as shown below.[MSI]
    ; If a value is present, the MSI section gives the name of the MSI file to install.  
    ; This file must be in the same directory as setup.exe, and both must be in the root 
    ; of the installation tree.
    ; If no value is present, setup.exe will look for exactly one file matching "*.msi"
    ; in its directory and if found, use that.
    ;
    MSI=data1.msi;[MST]
    ; If a value is present, the MST section gives the full path to a transform to apply.  
    ; Specify it in the form MST1=path to MST
    ; Remember to uncomment both the section name and the value names.
    ;
    ;MST1=\\server\share\some transform.mst
    ;MST1=D:\transforms\my transform.mst;[Options]
    ; If a value is present, the [Options] section gives the values of properties to apply to
    ; this installation.  Specify them in the format: 
    ; PropName=PropValue
    ; Remember to uncomment both the section name and the value names.
    ;
    ;USERNAME=Customer;[Display]
    ; If a value is present, the [Display] section overrides default UI modes.
    ; Display has one of the following values:
    ; quiet, none, basic, reduced, full
    ; CompletionNotice - if this value is present gives whether or not to display 
    ; a setup completion noticefor otherwise quiet setups. The completion notice will 
    ; only appear if Setup does not need to reboot to complete the installation.
    ; Remember to uncomment both the section name and the value names.
    ;
    ;Display=None
    ;CompletionNotice=Yes
    不知道为什么?各位大侠指点指点。