|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
ASP Challenge for the best - good luck Mosquito, UncaDanno
I would love to see a response from anyone who can help so please don't feel that Mosquito and UncaDanno in the subject refers to only them.
I am using FSO to write to a text file. The text file is the .css file for an application I'm building. The situation: I have built a form which allows the administrator of the application to customize the css tags in the css file and then once submitted FSO writes the page with it. The way this works is the FSO looks for the category to change (we'll say .Header). While looking for it FSO is writing each line of the current FSO file into a file called NewStyle.css. When it finds the line it's looking for it copies that to NewStyle.css but instead of copying the next line (the css tags) it writes a new line which is created by the form the customer just used. Makes sense right? The problem: The first time I run this application it runs perfectly. After the first attempt it no longer recognizes words, letters, ... anything. It will never find the category it's searching for. I have tried to do a replace of all small e's to capital E's and it didn't find any e's in the whole file. What does FSO do that would allow it to write the words, but no longer recognize anything as words or letters? Thanks for any help. I'm sure someone out there knows the answer to this and how I can fix it. |
|
|
|
|
|
#2 |
|
SQL nutcase
|
Maybe the file is saved in another format that is not recognised correctly (ansi vs. unicode?)
|
|
|
|
|
|
#3 |
|
Member (10 bit)
|
Do you have any idea how I would change that? Remember it is a file that is made by FSO so if that is the case there should be something that allows me to set the file type.
|
|
|
|
|
|
#4 |
|
SQL nutcase
|
I don't know fso very well. But you can probably find it in msdn.
|
|
|
|
|
|
#5 |
|
Member (10 bit)
|
I have found the answer but I don't know which format I need to create this in. It can either be
1 - ASCII 2 - Unicode 3 - Server Default I also read that a txt file cannot be opened to read and write at the same time. Is that correct? That just doesn't seem like it is possible. Thanks again for your help. Art Sapimp |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|