Curious: How does System.SimpleRead work?
Under the hood, I mean. I know how to use it, but how exactly does it work? What's it doing in the system? And what happens when you try to read a file that doesn't exist?
Stardock will be closed starting on November 26th and we will be returning November 30th. We will be monitoring support tickets and forums but expect delays in responses during this time.
Under the hood, I mean. I know how to use it, but how exactly does it work? What's it doing in the system? And what happens when you try to read a file that doesn't exist?
Up until a recent Microsoft Office update, it seemed System.Simpleread did nothing when trying to read a file that didn't exist. Now, it crashes the program. Took hours upon hours to figure that was the source of the problem. Which is why I ask if system.simplread is doing anything with Office or Sharepoint.
For what it's worth, here's the Windows error I kept getting for my program:
Problem Event Name: APPCRASH
Application Name: netmessenger2_1.exe
Application Version: 0.0.0.0
Application Timestamp: 4b900caa
Fault Module Name: StackHash_fd5e
Fault Module Version: 6.1.7601.17725
Fault Module Timestamp: 4ec49b60
Exception Code: c0000374
Exception Offset: 000c380b
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: fd5e
Additional Information 2: fd5e1090ca80046438fe8c5bc3e2c26f
Additional Information 3: 5fcb
Additional Information 4: 5fcb4ee5fa80075cf546dea713f2bcbe
System.SimpleRead(path, param)
It reads a file from disk to a string variable.
Only param=1 is currently supported.
Example:
txtLog = System.SimpleRead(baseDir & "Data\mylog", 1)
I have the source code . . .
Basically it reads a full text document passed in the first parameter and returns a string with the file content.
Thanks for looking into it. I was pretty sure it didn't used to conk when it tried to read a file that didn't exist. For this gadget I'll just have to go with FileSystemObject, instead.
Welcome Guest! Please take the time to register with us.
Select a reason for giving karma:
You're about to visit an external site:
Sign up here to get the latest news, updates, and special offers delivered directly to your inbox.