Thread: CSF to String??
View Single Post
Old 06-26-2005, 05:31 PM   #2 (permalink)
GuyInTheWindow
Senior Member
 
Join Date: Aug 2003
Posts: 134
Default

I haven't opened a csf or str file in awhile, so I might be off by a bit. In one of the CSF editors, there is an export to INI feature (file>export>to ini. file) You do that and rename the file to a .str file.

Open it with textpad (google it) or other text editor with regular expression find and replace. Here's what you do:

- Delete everything from the beginning to the end of [Table]
- Delete excess enters & spaces at the end of the file, but keep one enter at the end
- do a find and replace (ctrl+h in textpad) and make sure regular expressions is checked
- set Find What to: \n|
- set Replace With to: \\n
^ please note the extra space in the beginning and end
- Press "replace all" to go through the entire file

- set Find What to: \n
- set Replace With to: "\nEND\n
- Replace All

- set Find What to: =
- set Replace With to: \n"
- Replace All


Done!.... I'm doing this from memory so I'm not totally sure if it works 100%.
GuyInTheWindow is offline   Reply With Quote