File.Contents

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns the binary contents of the file located at a path.

File.Contents(path as text) as binary  

ArgumentDescription
pathThe path to the file to retrieve contents for.
File.Contents("c:\users\myuser\Desktop\file.txt")  

Show: