Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing to Text file
Message
De
13/12/2013 14:31:24
 
 
À
13/12/2013 13:55:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01590155
Message ID:
01590176
Vues:
53
Thanks for the update sir, Its working fine. But a problem. STRTOFILE seems to take atleast 3-5 times more time to write the same file as wrtten by SET TEXT MERGE option.





>Sorry, it's Friday, I mixed up the parameters.
>strtofile(trim(ps),newpath,1)
>
>>Oh..Something went wrong..It created a lot of file of each file name as Name of the Line inside Text file.
>>
>>Noo text was written inside the file. The file was blank from inside.. Here is what i did
>>
>>
>>			Create Cursor BILLCOMPRESS (PS C(254))
>>			Append From (m.CPSFILEPATH) Sdf
>>			Set Textmerge On
>>			Set Textmerge To (m.NEWPATH) Noshow
>>			Scan
>>*\\<< TRIM(PS) >>
>>*\
>>		strtofile(m.newpath,trim(ps),1)
>>
>>			Endscan
>>			Set Textmerge To
>>			Set Textmerge Off
>>
>>
>>
>>
>>Regards
>>
>>
>>>I don't think Text-Endtext is well suited in this case. Have you tried strtofile()? Something like this should work.
>>>
>>>Create Cursor BILLCOMPRESS (PS C(254))
>>>Append From (m.CPSFILEPATH) Sdf
>>>scan
>>>   strtofile(trim.newpath,trim(ps),1)
>>>Endscan
>>>
>>>
>>>>I am changng some text inside Text file (in Pact Post Script files).
>>>>
>>>>When I opened the original PS file in classic Notepad in Windows, all the text looks like garbage and difficult to trace the locations. However I inserted my required text and re-write the entire file back using the following command.
>>>>
>>>>
>>>>Create Cursor BILLCOMPRESS (PS C(254))
>>>>Append From (m.CPSFILEPATH) Sdf
>>>>Set Textmerge On
>>>>Set Textmerge To (m.NEWPATH) Noshow
>>>>Scan
>>>>\\<< TRIM(PS) >>
>>>>\
>>>>Endscan
>>>>Set Textmerge To
>>>>Set Textmerge Off
>>>>
>>>>
>>>>Now, the text has been written back and file is working properly, but the Text Inside that is displayed in separate Line by Line.
>>>>I need to keep my Text in Original (GARBAGE STYLE) so that it may be quite difficult for someone to read easly.
>>>>
>>>>Please open this FIle to see how text is displayed in Garbage style.Kindly Guide How to do this any delimiter. Here is my file, please open in Classic Notepad to see.
>>>>
>>>>https://www.dropbox.com/s/y210d15ourro5c5/1021165998.ps
>>>>
>>>>Regards
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
Harsh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform