Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-06-2001, 10:45 AM   #1
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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.
artsapimp is offline   Reply With Quote
Old 10-06-2001, 12:22 PM   #2
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
Maybe the file is saved in another format that is not recognised correctly (ansi vs. unicode?)
mosquito is offline   Reply With Quote
Old 10-06-2001, 12:42 PM   #3
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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.
artsapimp is offline   Reply With Quote
Old 10-06-2001, 02:12 PM   #4
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
I don't know fso very well. But you can probably find it in msdn.
mosquito is offline   Reply With Quote
Old 10-09-2001, 10:10 AM   #5
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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
artsapimp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:31 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2