Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
XTinyadoDB xtra
DeadC Scroll
Rotate Click-Alphamania
ROLLOVER FADES
Font Pool
Acrobat Reader
Refine a search - Valentina
RTF files using free FileIOXtra
Authoring Xtras
Bouncing Ball
 

 

 

Behavior Remove Line Feeds on Windows

Added on 2/15/2000

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: Macromedia (website)

From Technote #3133 at Macromedia.com

on stripTheFile
global myFileObj
set theFileName = "TEST.TXT"
set theCastMember = "My Field"

if objectP(myFileObj) then myFileObj(mDispose)
set myFileObj = fileIO(mNew, "read", the pathName & theFileName)
if objectP(myFileObj) then
put myFileObj(mReadFile) into temp
repeat while TRUE
put offset(numToChar(10), temp) into y
if y > 0 then
delete char y of temp
else
exit repeat
end if
end repeat
put temp into field theCastMember
myFileObj(mDispose)
else
alert "Error opening file " & theFileName & "."
end if
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail