@njvack @b0rk There's a minor difference in that in the first case, cmd's file 0 is file.txt, whereas in the second case it is a pipe that will get the contents of file.txt.
If the file is very large, you might notice a difference in memory usage for the pipe, but for most intents and purposes it shouldn't matter (but the < file.txt form is both less typing and more efficient).