I have this function that prints the name of all the files in a directory recursively. The problem is that my code is very slow because it has to access a remote network device with every iteration.
I am trying to read strings from a file that has each string on a new line but I think it reads a newline character once instead of a string and I don\'t know why. If I\'m going about reading strings
I am trying to use my own function to get the file size from a file. I\'ll use this to allocate memory for a data structure to hold the information on the file.
Still quite new to Haskell.. I want to read the contents of a file, do something with it possibly involving IO (using putStrLn for now) and then write new contents to the开发者_运维问答 same file.
It has always struck me as strange that the C function \"fopen\" takes a \"co开发者_运维百科nst char *\" as the second argument. I would think it would be easier to both read your code and implement t
When I attempt to open a file to write, I get an error: Ada.IO_Exceptions.Name_Error. The procedure call is Ada.Text_IO.Open; the file name is C:\\CC_TEST_LOG.TXT. This file does not exist.
I am trying to extract the text between that has specific text file: ---- data1 data1 data1 extractme ---- data2
I\'m a bit lost here as to why my rake task will not create the desired XML file, however it works fine when I have the method build_xml in an .rb file.
I have two files A-nodes_to_delete and B-nodes_to_keep. Each file has a many lines with numeric ids. I want to have the list of numeric ids that are in nodes_to_delete but NOT in nodes_to_keep, i.e. A
In the R scripting language, how 开发者_开发百科do I write lines of text, e.g., the following two lines