The file is about 40 k. This is the code snippet I have that is working but I thought I was maybe missing an built in applescript file position pointer.
try
close access serverList
end try
try
set serverList to open for access file "Startup Disk MacPro:Users:michaelneal:Desktop:Programming:Server list"
end try
repeat
try
copy (read serverList from pointerLoc until "]") to end of networkStore
copy (read serverList before "[") to end of serverStore
set pointerLoc to the number of characters of ((networkStore as string) & (serverStore as string))
on error
exit repeat
end try
end repeat
display alert the "File Position: " & (pointerLoc) & " EOF: " & (get eof serverList)
close access serverList
I have it pulling the network names and then the server names into different files just so I could test that it was working from the results as well as a display dialog for feedback.
Here is a snippet from the file im reading:
[AbleNET]
A.AbleNET.org
Defcon.AbleNET.org
eXtreme.AbleNET.Org
irc.ablenet.org
Quantum.uk.AbleNET.org
[AccessIRC]
Copenhagen.DK.EU.AccessIRC.Net
Warwickshire.UK.EU.AccessIrc.Net
Lexington.KY.US.AccessIRC.Net
Detroit.MI.US.AccessIRC.Net
Hackettstown.NJ.US.AccessIRC.Net
Florence.OR.US.AccessIRC.Net
[AceStar]
jailhouse.ma.us.acestar.org
[AfterNet]
Boston.AfterNet.Org
IC5.EU.AfterNET.Org
Flying-Dutchman.AfterNET.org
London.AfterNet.Org
TuX.AfterNet.Org
suarez.NY.US.AfterNET.org
[AlphaLink]
irc.alphalink.com.au
[AltNet]
darkside.altnet.org
ie.altnet.org
phoenix.altnet.org
rollingrock.altnet.org
[Alternet]
alternet.luc.ac.be
alternet.cnmnetwork.com
irc.eng.3sheep.edu
alternet.bawx.net
alternet.llamas.net
irc.subtle.org
alternet.wox.org
[Ancients Net]
chaos.ancients.net
uranus.ancients.net
wicked.ancients.net
[Animenet]
irc.aus.org
[AnyNet]
anynet.brimac.com
irc.bluecherry.net
irc.getsome.org
[ArabChat]
Bahrain.ArabChat.Org
Beirut.ArabChat.Org
Doha.ArabChat.Org
Gulf.ArabChat.Org
Khobar.ArabChat.Org
KSA.ArabChat.Org
Kuwait.ArabChat.Org
Love.ArabChat.Org
Oman.ArabChat.Org
Palestine.ArabChat.Org
Q8.ArabChat.Org
Qatar.ArabChat.Org
QualityNet.ArabChat.Org
Riyadh.ArabChat.Org
Saudi.ArabChat.Org
UAE.ArabChat.Org