
Read File Contents into String Variable


hrodstein
Function/S ReadFileIntoString(pathName, filePath) String pathName // Name of Igor symbolic path. Can be "" if filePath is a full path. String filePath // File name, path relative to pathName, or full path Variable refNum Open/R/P=$pathName refNum as filePath FStatus refNum Variable numBytes = V_logEOF String data = PadString("", numBytes, 32) FBinRead refNum, data Close refNum return data End

Forum

Support

Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More