获取文本文件的内容,然后反转文件的顺序。 [英] Get content of text file and then reverse the order of the file.

查看:106
本文介绍了获取文本文件的内容,然后反转文件的顺序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计我需要一些帮助。我有一个文件toxt.txt中的脚本,需要使用循环输入文本,前缀为行X,其中x对应于文本文件中的当前行号。文件中有17行文本。
以Zero开头。然后,输出相同的信息后缀。

Hey guys I need some help. i have a script that is in a file toxt.txt and need to import it using a loop to output text, prefixed by Line X, where x corresponds to the current line number from the text file. there are 17 lines of text in the file. starting with Zero. then, output that same info backwords.

到目前为止我只知道如何使用获取内容-path c:...

so far i only know how to use the get-content -path c:...

需要帮助获取前缀并让它成为后缀。 

need help getting the prefix in place and get it to go backwords. 

推荐答案

如果这是家庭作业,你将失败。

If this is home work you will fail the course.


l =获取内容yourfile.txt

l=Get-Content yourfile.txt


l [(


这篇关于获取文本文件的内容,然后反转文件的顺序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆