New topic: Nil Input Text Stream
<http://forums.realsoftware.com/viewtopic.php?t=25498> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message DanSandbergUCONN Post subject: Nil Input Text StreamPosted: Thu Dec 04, 2008 9:58 pm Joined: Fri Dec 21, 2007 9:50 am Posts: 113 so I want to read in a text file and i used Code:dim myfile as folderitem dim input as textinputstream myfile=getfolderitem(FILENAME) if myfile<>nil then input=myfile.openastextfile if input<>nil then **STUFF** else editfield1.text="nil input" end if else editfield1.text="no file" end if so the editfield reads nil input. I therefore conclude that the program found the file since myfile<>nil is true. I know the file contains about 300 lines of text because i can open it in my text editor. so why is the openastextfile property of myfile returning nil? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
