-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello all,
I would like to scan text of textfiles in Matlab with the textscan function. Before I can open the textfile with fid = fopen('C:\path'), I need to unzip the files first. The files have the extension: *.gz
There are thousands of files which I need to analyze and high performance is important…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've got a few questions concerning text files,list and strings.
I wonder if it is possible to put in a code which reads the text in a textfile,and then using "string line;" or something else to define each new row of the text and turn all of them into one list. So I can sort the rows, remove a row…
>>> More
-
as seen on Super User
- Search for 'Super User'
I have a java code that reads an excel file and writes it to a text file. When i get the output text file, I can see only symbols like this in the notepad. "????????????????????????????" But if i open the text file in wordpad or ms-word, the data is correctly displayed. What could be the error?
>>> More
-
as seen on Super User
- Search for 'Super User'
I use WinMerge to compare text files, usually alogn with TortoiseSVN.
It is pretty good.
The only thing which is inconvenient for me is very rough line comparison.
For instance, if I have two long lines without spaces and the only symbol is different in two string, WinMerge colors these two lines…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
I tried this aproach without any success
the code I'm using:
// File name
String filename = String.Format("{0:ddMMyyHHmm}", dtFileCreated);
String filePath = Path.Combine(Server.MapPath("App_Data"), filename + ".txt");
// Process
ProcessPBS pbs = new ProcessPBS();
pbs…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I have a text file with a strange character encoding that I'd like to convert to standard UTF-8. I have managed to get part of the way:
$ file myfile.txt
myfile.txt: Non-ISO extended-ASCII text, with LF, NEL line endings
$ iconv -f ascii -t utf-8 myfile.txt > myfile.txt.utf8
$ file myfile…
>>> More
-
as seen on Super User
- Search for 'Super User'
On Solaris, if you open a file in vi that has Windows line endings, this shows up as ^M at the end of every line.
On Linux, vi is cleverer and understands the Windows file format, and does not display ^M.
Is there a setting to make Linux vi behave the same as Solaris in this respect?
A common problem…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I often have to edit script files, the interpreter for which treats files that have an EOL marker on the last line of the file as an error (i.e. the file is treating CRLF as "newlines", not as "line endings"). Currently, I open these files in Vim using binary mode (-b on the command line). It autodetects…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign…
>>> More